JavaScript concepts

JavaScript · Scope

JavaScript Scope puzzles

4 JavaScript puzzles on scope. Read the snippet, guess the output, then reveal the answer and why JavaScript behaves that way.