What is wrong in this statement?


#1



https://www.codecademy.com/courses/javascript-beginner-en-9Sgpi/3/2?curriculum_id=506324b3a7dffd00020bf661

var myArray=[[true,5,"hello",me],[9]];


Oops, try again. It looks like your first two rows are the same length. Make them different!


Replace this line with your code.


#2

The right code:

var obj = {
    name: 'mohamad',
    age: 16,
};

var newArray = [ [3, 5, 7], [obj] ];

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.