Remove spaces

This commit is contained in:
aruseni 2019-07-08 18:27:17 +03:00
parent f30e0d4722
commit 17af410b81
No known key found for this signature in database
GPG key ID: CF4E5DF2A931A811

View file

@ -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