inner scope
outer scope
var x = function(){
alert(x.toString());
}
x();
function foo() {
alert(bar);
}
var bar;
foo(); // undefined
var scope = "global ";
function f( ) {
var scope;
alert(scope);
scope = "local";
alert(scope);
}
f( );
No block scope!