Function scope

Explanation of function scope in JavaScript