Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove an element from array javascript

let a=[1,2,3,4,5,6,7,8]
//if we want to remove an element with index x
a.splice(x,1)
Source by love2dev.com #
 
PREVIOUS NEXT
Tagged: #remove #element #array #javascript
ADD COMMENT
Topic
Name
5+9 =