All challenges
Multiple ChoiceIntermediate 30s

Lexical Scope

Choose the best answer for: lexical scoping
Options
  1. 1Scope is determined at runtime by the current call stack here
  2. 2JavaScript uses dynamic scoping so callee sees caller's vars
  3. 3JavaScript scope is block-only and ignores function boundaries
  4. 4JavaScript uses lexical scoping — scope is determined by code structure

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