JAVASCRIPT CREATING OBJECTS AND METHODS
########################################
1)Scope and Hoisting
Scope = a variable visibility
– globoal scope, out of a function
– function scope, inside a function
Does not support block scope (inside if/else for example)
Hoisting : When a var is declared in a block it is elevated to function scope