two-dimentional arrays

admin

Administrator
Staff member
Why can't I assign: myArray[1][0] = "de beer";?

Error says:
"1" is null or not an object...

function showArr() {
var myArray = Array(Array());
myArray[0][0] = "michelle";
myArray[1][0] = "de beer";
alert(myArray[1][0]);
}
 
Back
Top