Variables are like boxes that hold data.
Data is placed in boxes (variables). You refer to the data by naming the box (variable). Variables are declared by using the keyword var, the variable name, and a semicolon.
Newly declared variables are undefined.
var myVariable = 2;
//Initializing a variable gives it an initial value.
Variables are written in camel case. The first word of the variable is lowercase and the first letter of the second and subsequent words are capitalized.