What Is an Array?
Problem
You want to hold on to information in sequence without creating multiple variables.
Solution
Use an array to store your data. An arrayis an object where you can store information in a list-like order.
The Code
Listing 7-1. Creating Array Literals and Instances of an Array Object
var arrayLit = []; //Array Literal
var arrayObj = new Array(); //Array instance using a constructor
How It Works
In all instances, you get an array with all the properties and methods of an array . Using the array literal is a quick way of building ...