Why is this a 2D array?


#1

I passed the exercise, but I just don't get why is this 3x3 a 2d array? This looks 3D to me.

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

#2

1d:

var newArray = [1,2,3]

2d:

var newArray = [[1,2,3]]

3d:

var newArray = [[[1,2,3]]]

the dimension says something about the depth


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.