All challenges
Multiple ChoiceBeginner 30s

Block Scope with let

Choose the best answer for: block scoping
Options
  1. 1let variables are scoped to the enclosing block {}
  2. 2let has no scope and leaks into the global
  3. 3let is globally scoped wherever it is used
  4. 4let is function-scoped in exactly the same way as var

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle