DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript array negative index
const arr = ["first", "second", "third"] console.log(arr[-1]) // Will return undefined
PREVIOUS
NEXT
Tagged:
#javascript
#array
#negative
#index
ADD COMMENT
Topic
COMMENT
Name
6+9 =
Submit