var newArray= new Array();
newArray[0][0] = 0;
newArray[0][1] = 1;
newArray[0][2] = 2;
newArray[1][0] = 0;
newArray[1][1] = 1;
newArray[1][2] = 2;
newArray[2][0] = 0;
newArray[2][1] = 1;
newArray[2][2] = 2;
The error I get: TypeError: Cannot set property β0β of undefined (in the console screen)
The task at hand: Create a two-dimensional array called newArray in the editor. It should have three rows and three columns.
Pop up error I get: Oops, try again. It looks like newArray has fewer than three rows.
This is javscript btw. I donβt understand why I get the errors. I am pretty sure my syntax is right.
Maybe this is another problem with the intrepretator. because this works
myArray = new Array();
myArray[0] = βsadβ;