Merge pull request #1237 from jedpimentel/patch-1
Replace "Midget" with "Widget" in example words
This commit is contained in:
commit
6d7b926152
1 changed files with 2 additions and 2 deletions
|
@ -364,8 +364,8 @@ alert( "Hello".includes("Bye") ); // false
|
|||
The optional second argument of `str.includes` is the position to start searching from:
|
||||
|
||||
```js run
|
||||
alert( "Midget".includes("id") ); // true
|
||||
alert( "Midget".includes("id", 3) ); // false, from position 3 there is no "id"
|
||||
alert( "Widget".includes("id") ); // true
|
||||
alert( "Widget".includes("id", 3) ); // false, from position 3 there is no "id"
|
||||
```
|
||||
|
||||
The methods [str.startsWith](mdn:js/String/startsWith) and [str.endsWith](mdn:js/String/endsWith) do exactly what they say:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue