DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascipt get last element of array
const arr = [1,2,3] ; console.log(arr[arr.length - 1]);
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#javascipt
#element
#array
ADD COMMENT
Topic
COMMENT
Name
4+2 =
Submit