Maybe I'm asking this incorrectly, but I'm primarily wondering what is the difference between creating an array with and without the "new" keyword? When is it appropriate to use?
var myPix = new Array("Images/pic1.jpg", "Images/pic2.jpg", "Images/pic3.jpg");
I know that the the "new" keyword creates a new object. But, since I'm creating a variable that holds the array object, isn't the array still created without using "new"?
Lastly, couldn't I just as easily use this?
var myPix = ["Images/pic1.jpg", "Images/pic2.jpg", "Images/pic3.jpg"];