Merge pull request #1237 from jedpimentel/patch-1

Replace "Midget" with "Widget" in example words
This commit is contained in:
Ilya Kantor 2019-08-14 07:53:15 +03:00 committed by GitHub
commit 6d7b926152
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -364,8 +364,8 @@ alert( "Hello".includes("Bye") ); // false
The optional second argument of `str.includes` is the position to start searching from: The optional second argument of `str.includes` is the position to start searching from:
```js run ```js run
alert( "Midget".includes("id") ); // true alert( "Widget".includes("id") ); // true
alert( "Midget".includes("id", 3) ); // false, from position 3 there is no "id" 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: The methods [str.startsWith](mdn:js/String/startsWith) and [str.endsWith](mdn:js/String/endsWith) do exactly what they say: