Skip to content

Commit 4856c06

Browse files
authored
Replace "Midget" with "Widget" in example words
Word "Midget" can be offensive and shouldn't be included as an example in educational materials. Replaced with "Widget" for better consistency/inclusiveness. https://www.lpaonline.org/the-m-word
1 parent 763aba5 commit 4856c06

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)