When Entering an Execution Context, the Variable Environment is initialized with parameter variables, Function Declarations, and Variable Statements.
function myFunc(myParam) { debugger; var myVar = 1; function innerFunc(a) { return a++; } return myVar + innerFunc(3); }
Open the debugger and then click the button below.