From 17af410b810e09e873f856b6c8c228841a2ce5fb Mon Sep 17 00:00:00 2001 From: aruseni Date: Mon, 8 Jul 2019 18:27:17 +0300 Subject: [PATCH] Remove spaces --- 1-js/05-data-types/03-string/article.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/1-js/05-data-types/03-string/article.md b/1-js/05-data-types/03-string/article.md index ebfda974..600aa06b 100644 --- a/1-js/05-data-types/03-string/article.md +++ b/1-js/05-data-types/03-string/article.md @@ -45,7 +45,7 @@ If we use them and try to use multiple lines, there'll be an error: ```js run -let guestList = "Guests: // Error: Unexpected token ILLEGAL +let guestList = "Guests: // Error: Unexpected token ILLEGAL * John"; ``` @@ -199,7 +199,7 @@ For instance: ```js run let str = 'Hi'; -str = 'h' + str[1]; // replace the string +str = 'h' + str[1]; // replace the string alert( str ); // hi ``` @@ -377,7 +377,7 @@ The methods [str.startsWith](mdn:js/String/startsWith) and [str.endsWith](mdn:js ```js run alert( "Widget".startsWith("Wid") ); // true, "Widget" starts with "Wid" -alert( "Widget".endsWith("get") ); // true, "Widget" ends with "get" +alert( "Widget".endsWith("get") ); // true, "Widget" ends with "get" ``` ## Getting a substring