Skip to content

Commit b18b5ba

Browse files
committed
minor fixes
1 parent 58ed032 commit b18b5ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

1-js/05-data-types/05-array-methods/article.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ That's natural, because `delete obj.key` removes a value by the `key`. It's all
3636

3737
So, special methods should be used.
3838

39-
The [arr.splice(start)](mdn:js/Array/splice) method is a swiss army knife for arrays. It can do everything: insert, remove and replace elements.
39+
The [arr.splice](mdn:js/Array/splice) method is a swiss army knife for arrays. It can do everything: insert, remove and replace elements.
4040

4141
The syntax is:
4242

4343
```js
44-
arr.splice(index[, deleteCount, elem1, ..., elemN])
44+
arr.splice(start[, deleteCount, elem1, ..., elemN])
4545
```
4646

47-
It starts from the position `index`: removes `deleteCount` elements and then inserts `elem1, ..., elemN` at their place. Returns the array of removed elements.
47+
It modified `arr` starting from the index `start`: removes `deleteCount` elements and then inserts `elem1, ..., elemN` at their place. Returns the array of removed elements.
4848

4949
This method is easy to grasp by examples.
5050

0 commit comments

Comments
 (0)