All challenges
Multiple ChoiceBeginner 180s

[JavaScript] Loop capture Function retains outer scope after return

for(var i=0;i<3;i++) setTimeout. Output?
Options
  1. 1Hoisting
  2. 2Closure
  3. 3Event loop
  4. 4Promises

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