I'm trying to define arrays of objects, I can define one dimensional array of object but as I try to define the two dimensional I get a error. What is the correct way to define a multidimensional array of objects in Javascript? Here's my code :
for(var i=0;i<3;i++)
{
obj1[i] = [
{property1},{property2}
];
for(var j=0;j<2;j++)
{
obj2[i][j]= [
{property1},{property2}
];
}
}