9ed2f60c9d
55d8e3dbc0
@ -517,7 +517,7 @@ Slice: To cut out a multiple items in range. It takes two parameters:starting an
#### Splice method in array
Splice: It takes three parameters:Starting position, number of times to be removed and number of items to be added.
Splice: It takes three parameters: Starting position, number of elements to remove (optional) and number of elements to add (optional).
```js
const numbers = [1, 2, 3, 4, 5]