Multidimensional Arrays


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



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.


Thanks for your help