Fixed wrong command

pull/396/head
Taha 3 years ago committed by GitHub
parent ec0824543b
commit 1cbab65da8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -521,14 +521,14 @@ Splice: It takes three parameters:Starting position, number of times to be remov
```js
const numbers = [1, 2, 3, 4, 5]
numbers.splice()
numbers.splice(0)
console.log(numbers) // -> remove all items
```
```js
const numbers = [1, 2, 3, 4, 5]
numbers.splice(0,1)
numbers.splice(0,1)
console.log(numbers) // remove the first item
```

Loading…
Cancel
Save