We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c9e531 + 4856c06 commit 6d7b926Copy full SHA for 6d7b926
1-js/05-data-types/03-string/article.md
@@ -364,8 +364,8 @@ alert( "Hello".includes("Bye") ); // false
364
The optional second argument of `str.includes` is the position to start searching from:
365
366
```js run
367
-alert( "Midget".includes("id") ); // true
368
-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"
369
```
370
371
The methods [str.startsWith](mdn:js/String/startsWith) and [str.endsWith](mdn:js/String/endsWith) do exactly what they say:
0 commit comments