foo(); // JSlint: 'foo' was used before it was defined function foo() { var a = 5; return a; }
alert(foo()); function foo() { var a = 5; return a; };