DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
JS last element of array
const arr = [1,2,3,4,5] arr.at(-1) //returns 5
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#JS
#element
#array
ADD COMMENT
Topic
COMMENT
Name
9+6 =
Submit