Why is this a 2D array?


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]];



var newArray = [1,2,3]


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


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

the dimension says something about the depth


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