Can't Read My Array


#1


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

When I use this code, the computer says,"TypeError: Cannot read property of '9' undefined." The site then says,"Oops, try again. It looks like newArray has fewer than three rows." When I tried removing the third 2nd Dimensional array, the computer gave me no Error output. How should I alter it?


var newArray = [
    [1,4,7]
    [2,5,8]
    [3,6,9]
    ];


#2

Add commas after each row, like so:

var newArray = [[1,4,7],[2,5,8],[3,6,9]];