Merge pull request #1129 from aruseni/spaces

Remove spaces
This commit is contained in:
Ilya Kantor 2019-07-08 18:33:12 +03:00 committed by GitHub
commit 1a29e1f9c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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