Skip to content

Commit 2cccadc

Browse files
authored
add highliting
1 parent 291b5c0 commit 2cccadc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1-js/05-data-types/03-string/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ alert( "Widget".includes("id", 3) ); // false, from position 3 there is no "id"
371371
The methods [str.startsWith](mdn:js/String/startsWith) and [str.endsWith](mdn:js/String/endsWith) do exactly what they say:
372372

373373
```js run
374-
alert( "Widget".startsWith("Wid") ); // true, "Widget" starts with "Wid"
375-
alert( "Widget".endsWith("get") ); // true, "Widget" ends with "get"
374+
alert( "*!*Wid*/!*get".startsWith("Wid") ); // true, "Widget" starts with "Wid"
375+
alert( "Wid*!*get*/!*".endsWith("get") ); // true, "Widget" ends with "get"
376376
```
377377

378378
## Getting a substring

0 commit comments

Comments
 (0)