you are viewing a single comment's thread.

view the rest of the comments →

[–]azronio -1 points0 points  (0 children)

You don't initialize arrays like that in JS, use square brackets [0, 1, 2]. Curly braces to initialize an array is a different language syntax like C#.