13.Multidimensional Arrays


#1


13.Multidimensional Arrays


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


Whenever I try out this code it always alerts me with the message "Oops, try again. It looks like your first two rows are the same length. Make them different!". What am I doing wrong? I've made sure that they're different lengths. My guess is that the object is bad, but I don't know what to do with it.


var myObj = {
    House: 'small',
    Appearance: 'fancy'
};
var myArray = [ [1,2,3], [myObj,2,'hello',17] ];


#2

Check instructions once again..

hint**
Name of your array


#3

I'm sorry but I still don't understand what is needed. I put in another column, and changed the amount of rows but the same message still appears.

This is my new code:
var myObj = {
House: 'small',
Appearance: 'fancy'
};
var myArray = [ [1,2], [myObj,2,'hello',17], [2] ];


#4

here it is..

Make an array called newArray. It should be 2D


#5

Oh, thank you so much for your time!
The help is very appreciated. I didn't notice that!


#6

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