Arrays are a way of storing multiple values in one place. 

Arrays can be a list of similar items, like names, or they can be a list of different types of items, like personal information, name, age, address, education level, etc.

An array is a list of comma separated values, held inside square brackets, that are assigned to a single variable name. The values can be numbers, strings or Boolean values.

Arrays are zero-indexed, meaning that the first element in the array is 0, eg shopList[0].

var johnsToys = ["truck", "basketball", "crayons", "remote control race car", "playstation"];
var johnsInfo = ["John", "Wilson", "456 Houston Street", "Austin", "Texas", 9, false ]

The square brackets tell JavaScript that this is an array. It is called an array literal. If you know you are going to use a variable name for an array, but you don't have any items for the array until the program runs, you can declare it with just the brackets.

var partyItems = [];

Access the values in an array

When accessing a value inside of an array, you need to tell the program which item you are referring to. this is done with a format like this:

var carInfo = ["2013", "Toyota", "Camry" ]
var carModel = carInfo[2]

You might say - but the model is the 3rd one over. Remember that arrays start with [0].

var carYear = carInfo[1];
var carMake = carInfo[2];
var carModel = carInfo[3];