Lesson 6 Arrays of Arrays



my code looks like that:

var newArray = [[[8, "music", "voice"], ["cat",78, "dog"], [4, 3, "house"]]];

and don't work because "Oops, try again. It looks like newArray has fewer than three rows."

What is wrong? I can't find it out....HELP please..


You only need one pair of paranthesis for the outer array.

var my_arr= [[1 ,2 ,3], [4, 5, 6]]

would be an example of an array with two rows.


var newArray =[[1,2,3],[4,5,6],[7,8,9]];


Gee, thanks. That helped me a lot.