Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

declare 2 d vector js

let 2Darray = new Array(x).fill(null).map(item =>(new Array(y).fill(null)))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #declare #vector #js
ADD COMMENT
Topic
Name
2+1 =