var myArray = new Array(); myArray[0] = "Alice"; myArray[1] = "Fred"; ...
var myArray = new Array("Alice", "Fred", "Jean"); // or var myArray = ["Alice", "Fred", "Jean"];
myArray[myArray.length] = "Steve";
var arrayAsString = myArray.join(","); // a comma is inserted between each item
var restoredArray = myRegularString.split(",");
var amounts = "30.25,120.00,45.09,200.10"; var amtArray = amounts.split(/\.\d{2},?/);