61
rated 0 times
[
65]
[
4]
/ answers: 1 / hits: 90661
/ 12 Years ago, thu, march 15, 2012, 12:00:00
I would like to know how to declare 2 dimensional arrays in java script of fixed lengths something like,
var array = new Array[this.rows, this.columns];
after that I would like to get the length of each dimension like,
array[0].length; // I am assuming this would give me the first dimension like in C# array.GetLength(0);
array[1].length; // I am assuming this would give me the second dimension like in C# array.GetLength(1);
More From » arrays