Skip to content

Commit cbf9abb

Browse files
authored
add highliting
1 parent 66e6835 commit cbf9abb

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
@@ -367,8 +367,8 @@ alert( "Midget".includes("id", 3) ); // false, поиск начат с пози
367367
Методы [str.startsWith](mdn:js/String/startsWith) и [str.endsWith](mdn:js/String/endsWith) проверяют, соответственно, начинается ли и заканчивается ли строка определённой строкой:
368368

369369
```js run
370-
alert( "Widget".startsWith("Wid") ); // true, "Wid" — начало "Widget"
371-
alert( "Widget".endsWith("get") ); // true, "get" — окончание "Widget"
370+
alert( "*!*Wid*/!*get".startsWith("Wid") ); // true, "Wid" — начало "Widget"
371+
alert( "Wid*!*get*/!*".endsWith("get") ); // true, "get" — окончание "Widget"
372372
```
373373

374374
## Получение подстроки

0 commit comments

Comments
 (0)