Multidimensional Arrays


#1

var myObj = new Object {};
var newArray = [[1, 3],[4, myObj],[6, 7}];

Help


#2

When I run your code I get this error:

SyntaxError: Unexpected token {

You have curly braces instead of parenthesis after new Object,

var myObj = new Object();

You also have a curly brace instead of a square bracket closing your third array.


#3

Thanks for your help