Skip to content

Commit 98507d4

Browse files
authored
Update article.md
1 parent f57be1b commit 98507d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ There are 3 methods in JavaScript to get a substring: `substring`, `substr` and
379379

380380
```js run
381381
let str = "stringify";
382-
alert( str.slice(0,5) ); // 'string', the substring from 0 to 5 (not including 5)
382+
alert( str.slice(0,5) ); // 'strin', the substring from 0 to 5 (not including 5)
383383
alert( str.slice(0,1) ); // 's', from 0 to 1, but not including 1, so only character at 0
384384
```
385385

0 commit comments

Comments
 (0)