some corrections

pull/746/head
johnmarklumapac 2 years ago committed by GitHub
parent 65e85f642b
commit 9442aec355
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -535,7 +535,7 @@ Splice: It takes three parameters:Starting position, number of times to be remov
```js
const numbers = [1, 2, 3, 4, 5, 6]
numbers.splice(3, 3, 7, 8, 9)
console.log(numbers.splice(3, 3, 7, 8, 9)) // -> [1, 2, 3, 7, 8, 9] //it removes three item and replace three items
console.log(numbers) // -> [1, 2, 3, 7, 8, 9] //it removes three item and replace three items
```
#### Adding item to an array using push

Loading…
Cancel
Save