DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
js array delete specific element
var ar = [1, 2, 3, 4, 5, 6]; ar.pop(); // returns 6 console.log( ar ); // [1, 2, 3, 4, 5]
Source by flaviocopes.com #
PREVIOUS
NEXT
Tagged:
#js
#array
#delete
#specific
#element
ADD COMMENT
Topic
COMMENT
Name
5+6 =
Submit