Arrays Disabled in Editor

I recently tried creating a program that used arrays in JS to store direction, speed, and time values so that a collision would make the bot return, but when I tried to run it, I got a syntax error for my array declarations… Is this an intentional feature, or is there a different way to declare arrays that I’m unaware of? I don’t understand why this exists, because it completely eliminates the option to create an infinitely expandable return-on-crash program, since dynamically naming variables is also a “syntax error”. Thanks for your help!

SPHERO Email Marketing -