0
How to initiate an empty two-dimensional array in JavaScript?
var [] arr = new Array(); var [] [] arr = ?
1 Answer
0
you can just do:
var arr = [];
later you can push value in it "arr.push(value)" or you can use ES6 spread syntax " var arr = [...value]"