Simple and Complex Variable Declarations

Simple Variable Declaration
A simple variable declaration is the usage of a var keyword along with the optional variable assignment to determine the value of the variable.
Example 1:
var x =1 + 3 +10;

Example 2:
var x; // unassigned

Complex Variable Declaration
A complex variable declaration is the usage of a var keyword immediately followed by a scope instead of a semicolon.
Example 1:
var y = 1
{
if( x > 10 )
y = x;
}