quote:
Originally posted by L. Coyote
I once needed this type of array and had to do this:
code:
var arr = new Array();
arr[0] = new Array();
arr[0][0] = "blah";
That's also the way I do it. I have no idea how JScript would react if you try to add an array element to an array element which is undefined at that moment... Maybe I should try it.
Another way you could do it, would be:
code:
var arr = new Array(new Array("thing", "stuff"), new Array("crap", "blah"));