Skip to content

Commit 6d7b926

Browse files
authored
Merge pull request #1237 from jedpimentel/patch-1
Replace "Midget" with "Widget" in example words
2 parents 7c9e531 + 4856c06 commit 6d7b926

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1-js/05-data-types/03-string/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@ alert( "Hello".includes("Bye") ); // false
364364
The optional second argument of `str.includes` is the position to start searching from:
365365

366366
```js run
367-
alert( "Midget".includes("id") ); // true
368-
alert( "Midget".includes("id", 3) ); // false, from position 3 there is no "id"
367+
alert( "Widget".includes("id") ); // true
368+
alert( "Widget".includes("id", 3) ); // false, from position 3 there is no "id"
369369
```
370370

371371
The methods [str.startsWith](mdn:js/String/startsWith) and [str.endsWith](mdn:js/String/endsWith) do exactly what they say:

0 commit comments

Comments
 (0)