Objects in arrays how?


Replace this line with your code. 

ar newArray=[[1,2,myObj],[1]];
var myObj={

is my code correct for the objects in arrays?


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).