string.find() syntax question

Open
#9 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
documentation

Research direction

Start by reading Part 3.2 and comparing its .find(value) syntax with the official documentation's .find(value, start, end) signature. Clarify whether start and end are optional parameters, then ensure the course explanation answers why the shorter form is shown; done when the syntax and parameter behavior are clear.

Written by the indexing model from the issue text.

Description

I have a question about the string.find() method in Part 3.2

Image

In the course material, the syntax is explained as:
.find(value)

But according to the official documentation, the full syntax is:
.find(value, start, end)

Why does the course only show .find(value) and not .find(value, start, end)?
Is it because start and end are optional parameters?

Dominant language
JavaScript
Stars
77
Forks
30
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rage/programming-26

All issues in rage/programming-26

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.