DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript take last element of array
let array = [1,2,3,4,5]; let lastElement = array.pop(); // array -> [1,2,3,4]; // lastElement = 5;
Source by bobbyhadz.com #
PREVIOUS
NEXT
Tagged:
#javascript
#element
#array
ADD COMMENT
Topic
COMMENT
Name
9+8 =
Submit