All challenges
Multiple ChoiceHard 30s

Garbage Collection

Choose the best answer for: when closures get GC'd
Options
  1. 1Closure variables are GC'd when the closure itself is unreachable
  2. 2Closures GC immediately after the outer function is defined
  3. 3Closures GC when the outer function returns, not any later
  4. 4Closures never get GC'd because they hold global references

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