DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
Remove an item by index position
let removedItem = fruits.splice(pos, 1) // this is how to remove an item // ["Strawberry", "Mango"]
Source by developer.mozilla.org #
PREVIOUS
NEXT
Tagged:
#Remove
#item
#index
#position
ADD COMMENT
Topic
COMMENT
Name
5+5 =
Submit