Jagged Arrays Syntax Error


#1

var jagged = [["Fish", 8, true], 5], [[41, false, "Jesus"], true], [[5, "god", true], "alla"], [[4, 5, 6], [6, 9, 7]], [[true, "seventy", 0], [7, true, "Ball"]], [[3, 4, 5], [2, true, "hurhur"]]];

I checked all of the brackets to make sure they all close properly. I continue to get a syntax error. Hjelpe?


#2

I fixed it and better formatted. Ignore now please.

var jagged = [
[["Fish", 8, true], 5],
[[41, false, "Jesus"], true, [6, "ugh", "I hate arrays"]],
[[5, "god", true], "alla"],
[[4, 5, 6], [6, 9, 7]],
[[true, "seventy", 0], [7, true, "Ball"]],
[[3, 4, 5], [2, true, "hurhur"]]
];


#3

Can you marked this as a solved post to ensure people do not keep crawling here hoping there is still a problem


#4

How do I do that? I just can not find my posted topic... Sorry :e-mail:


#5

go to your profile and then click on topic in the tab on the left side


#6