javascript array grid
Do you have to write out your information for a multi-dimensional array in javascript? i.e.: var array = [ ["1", "2"],
["3", "4"],
];
Or can you form an array (var arr = ["1", "2"]) and then assign it to the first index of another array.
var cells = new Array();
cells[0] = arr;
There seems to be a bug in my code and I'm wondering if it was my array creation. Thanks
["3", "4"],
];
Or can you form an array (var arr = ["1", "2"]) and then assign it to the first index of another array.
var cells = new Array();
cells[0] = arr;
There seems to be a bug in my code and I'm wondering if it was my array creation. Thanks
August 4,