6 arrays of arrays print out


#1



`var newArray = [["A", "B", "C"], [1, 2, 3], [true, false, true]];`

I get that if I want it to log [1, 2, 3], I should use 

`console.log(newArray[1]);`

but, what if I want it to print only one element of that array, like, only number 2?


#2

simple:

console.log(newArray[1][1]);

you can add another [] to access elements in that array by index.


#3

thanks, it works

I tried several ways but apparently not that one.