7. Jagged arrays (question)


#1

Hi. I need help with my below code:

var jagged[
["Jayram"],
["Michael", "singer", 30],
true
];
console.log(jagged);

When I try to submit, it shows an error message "SyntaxError: Expected ';' "

What am I doing incorrectly?


#2

Remember to write it as an assignment.

var jagged = ...

#3

Yes, I knew I was missing something. Thanks for pointing it out.


#4

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