How to add more columns?


#1

Hey guys
I have and error in my code that says:

Oops, try again. It looks like newArray has fewer than three columns

I don't understand.

For you satisfaction here is the code:
var newArray = [[2, 2], [1, 3],[4,7]]


#2
var newArray = [[2, 2], [1, 3],[4,7]]

The above array has three rows, but only two columns. Add one more bit of data to each row.

newArray = [
    [ 2, 2, 2 ],
    [ 1, 3, 5 ],
    [ 4, 7, 10 ]
];

#3

Thanks for the help.
Very appreciated :+1: