All challenges
Multiple ChoiceIntermediate 30s

Closure in Event Handlers

Choose the best answer for: closures for event handlers
Options
  1. 1Event handlers can't use closures
  2. 2Closures always use the latest value
  3. 3Closures cause memory leaks guaranteed
  4. 4Closures capture the value at handler creation time

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