From 4856c06dee37940c78a3201b5578a597ec057613 Mon Sep 17 00:00:00 2001 From: "Jose E. Pimentel" Date: Tue, 13 Aug 2019 09:54:35 -0400 Subject: [PATCH] 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-js/05-data-types/03-string/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1-js/05-data-types/03-string/article.md b/1-js/05-data-types/03-string/article.md index 820f6237..3bde8bd5 100644 --- a/1-js/05-data-types/03-string/article.md +++ b/1-js/05-data-types/03-string/article.md @@ -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: