You can then access the values in the array by using the array name and bracket notation:
alert(aNames); //outputs "Benjamin" alert(aNames); //outputs "Michael" alert(aNames); //outputs "Scott"
Note that the first position in the array is 0, and the value in that position is "Benjamin".
var aValues = ["string", 24, true, null];
If you were to define an array without using literal notation, you would have to use the Array constructor, such as: