Objects in arrays how?


#1



Replace this line with your code. 

ar newArray=[[1,2,myObj],[1]];
var myObj={
    type:"fancy",
    age:43;
}




is my code correct for the objects in arrays?


#2

So long as the object is defined before the array. In your code above the interpreter will throw a reference error (discounting the obvious syntax error that is probably just a paste-in error).