Arrays of arrays


#1

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


Hey everyone. I hate to ask for help but I'm stuck. Whenever I try to compile the code, the simulator tells me that I have fewer than three columns. What am I doing wrong?


var newArray = [[1,1,1],[2,2,2],[3,3,3]];
    console.log(newArray);


#2

Your code is correct. When I run it in my editor, it works fine. Try a different browser, or reloading the page.


#3

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