File tree 1 file changed +3
-3
lines changed
1-js/05-data-types/03-string 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ If we use them and try to use multiple lines, there'll be an error:
45
45
46
46
47
47
``` js run
48
- let guestList = " Guests: // Error: Unexpected token ILLEGAL
48
+ let guestList = " Guests: // Error: Unexpected token ILLEGAL
49
49
* John" ;
50
50
```
51
51
@@ -199,7 +199,7 @@ For instance:
199
199
``` js run
200
200
let str = ' Hi' ;
201
201
202
- str = ' h' + str[1 ]; // replace the string
202
+ str = ' h' + str[1 ]; // replace the string
203
203
204
204
alert ( str ); // hi
205
205
```
@@ -377,7 +377,7 @@ The methods [str.startsWith](mdn:js/String/startsWith) and [str.endsWith](mdn:js
377
377
378
378
``` js run
379
379
alert ( " Widget" .startsWith (" Wid" ) ); // true, "Widget" starts with "Wid"
380
- alert ( " Widget" .endsWith (" get" ) ); // true, "Widget" ends with "get"
380
+ alert ( " Widget" .endsWith (" get" ) ); // true, "Widget" ends with "get"
381
381
```
382
382
383
383
## Getting a substring
You can’t perform that action at this time.
0 commit comments