File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
1-js/05-data-types/03-string Expand file tree Collapse file tree 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:
4545
4646
4747``` js run
48- let guestList = " Guests: // Error: Unexpected token ILLEGAL
48+ let guestList = " Guests: // Error: Unexpected token ILLEGAL
4949 * John" ;
5050```
5151
@@ -199,7 +199,7 @@ For instance:
199199``` js run
200200let str = ' Hi' ;
201201
202- str = ' h' + str[1 ]; // replace the string
202+ str = ' h' + str[1 ]; // replace the string
203203
204204alert ( str ); // hi
205205```
@@ -377,7 +377,7 @@ The methods [str.startsWith](mdn:js/String/startsWith) and [str.endsWith](mdn:js
377377
378378``` js run
379379alert ( " 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"
381381```
382382
383383## Getting a substring
You can’t perform that action at this time.
0 commit comments