All challenges
Multiple ChoiceHard 30s

Closure in Loops

Choose the best answer for: closure loop trap
Options
  1. 1for loops can't create closures since each trip shares a binding
  2. 2var in a loop captures the same variable; let creates block scope
  3. 3Closures don't work in loops and always read the final index value
  4. 4let has the same loop issue as var and captures one shared binding

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