All challenges
Multiple ChoiceIntermediate 30s

this Gotchas

Choose the best answer for: losing this context
Options
  1. 1this is always safely preserved when passed as a callback
  2. 2callbacks preserve this by default in all modern engines
  3. 3Passing obj.method as callback loses this binding
  4. 4this rebinds automatically to the caller for callbacks

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