Variables
The var keyword defines a variable. Type of variable defined by type of assigned value.
// syntax
// var <variable-name> [= <value>];
var one = 1; // numeric value
var two = 'two'; // string value
var three; // type undefined
Variable declared without var will be created in global scope. And it can be accidently overwrited.