Javascript: Variables

  
/*
We use variables to store data in Javascript. Variables should
be named(mostof the time) using the "var" keyword. Variable
names may consist of letters, digits, underscores, and dollarsigns.

The names of variables are case sensitive:
*/

var myName;
//is different than
var myname;
//or
var MYNAME;


/*We can set the value of the variable right away or later in the
program.
*/
var name1 = "Bill";
var age = 15;
//or
var name2;
var age2;
name2 = "Ted\'s";
age2 = 16;

alert(name1 + " and " + name2 + " Excellent Adventure");