DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
unpack array into variables javascript
var yourArr = [1, 2, 3] [one, , three] = yourArray // 2 is ignored // one == 1 && three == 3
PREVIOUS
NEXT
Tagged:
#unpack
#array
#variables
#javascript
ADD COMMENT
Topic
COMMENT
Name
5+6 =
Submit