Merge pull request #514 from zivb/patch-1

Update article.md
This commit is contained in:
Ilya Kantor 2017-04-20 23:28:41 +02:00 committed by GitHub
commit 23ee5a4464

View file

@ -379,7 +379,7 @@ There are 3 methods in JavaScript to get a substring: `substring`, `substr` and
```js run
let str = "stringify";
alert( str.slice(0,5) ); // 'string', the substring from 0 to 5 (not including 5)
alert( str.slice(0,5) ); // 'strin', the substring from 0 to 5 (not including 5)
alert( str.slice(0,1) ); // 's', from 0 to 1, but not including 1, so only character at 0
```