All challenges
Multiple ChoiceIntermediate 30s

Emulating Block Scope

Choose the best answer for: pre-ES6 block scope
Options
  1. 1IIFEs were used to create block scope before let/const
  2. 2var created block scope, so IIFEs were needed to share state
  3. 3Block scope didn't exist before ES6, so let was the only way
  4. 4The with statement created block scope for the enclosed code

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