Lesson 6 Arrays of Arrays


#1

Hi,

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..


#2

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.


#3

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


#4

Gee, thanks. That helped me a lot.