Skip to main content
added 32 characters in body
Source Link

No block scoping and hoisting.

foo(); // function executes, no error if (...) { function foo(){ ... } } 

No block scoping and hoisting.

foo(); if (...){ function foo(){ ... } } 

No block scoping and hoisting.

foo(); // function executes, no error if (...) { function foo(){ ... } } 
Source Link

No block scoping and hoisting.

foo(); if (...){ function foo(){ ... } }