why does the following declaration with initialization produce an error ?
Why not just use an Array?
var dances = new Array();
dances[0] = "dance";
dances[1] = "dance2";
dances[2] = "dance9";
I think that would hopefully be all you need to do, unless you have something else really funky you are planning.
var dances = ["dance", "dance2", "dance9"];
–Eric