DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javscript generate empty 2d array
var grid = [...Array(width)].map(e => Array(height)); // access via grid[y][x]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#javscript
#generate
#empty
#array
ADD COMMENT
Topic
COMMENT
Name
8+4 =
Submit