15/17 Oops, try again! The first to rows are the same length [solved]


#1

Hi everyone,
would anyone please explain to me, what I have done wrong with this code.

Task:
Make an array called newArray. It
should be 2D (that is, it should contain two elements that, in turn, are
arrays) and jagged (those two arrays should be of different lengths,
like in the example above).

The ultimate kicker? Make one of your inner arrays contain an object!

My code:
var Kong = new Object();
   Kong.name = "Kong",
   Kong.age = 23;

var myArray = [[Kong, "Master"],[1]];
console.log(myArray);

Thanks in advance


#2

the "my code" line, should not be in the code box.


#3

mistake solved:

var myArray != newArray

The array needs to be called "newArray".