var names=new Array("test","once","twice");Each of the quotated are each of the message saved to the variable. The word Array has to be capitalized. This variable "names" have three variables test, once, twice.
Now like before:
Picks the second of the variable array list. Computer starts counting from zero.
Second Way to Declare Array
var names= new Array();
Now Alert it:
This would return you with the "twice" in the alert box.