DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVA
how to access last item in array
let myArr = [1, 2, 3, 4, 5]; let arr = myArr[myArr.length - 1]; console.log(arr);
PREVIOUS
NEXT
Tagged:
#access
#item
#array
ADD COMMENT
Topic
COMMENT
Name
8+4 =
Submit