DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
how to remove last index of array in javascript
var arr = [1,2,3,4]; console.log(arr.splice(0,arr.length-1)); Run code snippetHide results
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#remove
#index
#array
#javascript
ADD COMMENT
Topic
COMMENT
Name
8+1 =
Submit