Merge pull request #2296 from odsantos/update-strings

Rephrase sentence.
This commit is contained in:
Ilya Kantor 2020-11-24 23:23:25 +03:00 committed by GitHub
commit a9d23632b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -239,7 +239,7 @@ alert( str.indexOf('widget') ); // -1, not found, the search is case-sensitive
alert( str.indexOf("id") ); // 1, "id" is found at the position 1 (..idget with id)
```
The optional second parameter allows us to search starting from the given position.
The optional second parameter allows us to start searching from a given position.
For instance, the first occurrence of `"id"` is at position `1`. To look for the next occurrence, let's start the search from position `2`: