DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript get second last element of array
const numbers = ["one", "two", "three", "four"]; console.log(numbers[numbers.length - 2]);
PREVIOUS
NEXT
Tagged:
#javascript
#element
#array
ADD COMMENT
Topic
COMMENT
Name
9+8 =
Submit