String Array in JS

I am having trouble with string arrays in Javascript.

var messages = "default"[];

Doesn’t compile. It tells me I need a semi-colon at the end.

var messages : String[];

Does compile, but I can’t set it to be anything in the inspector. If I type anything in “length” it automatically resets to zero.

var messages : String[] = ["a", "b", "c"];

Change that to:

var messages : String[1];

A small bug I guess. As long as there’s at least one element, you can change it to whatever you need in the inspector…just don’t manually set it back to 0 or you get stuck again.

–Eric