Topics

Jump to a topic.

Search questions

Find a question by title, tag, or summary.

Chapter 09

Closures

What a closure is in terms of environments, what it keeps alive, and the patterns built on it.
5 questions
  1. 010What is a closure?Coming soonCoremedium
  2. 020Why does a for (var i…) loop with setTimeout print the same number?Coming soonCoremedium
  3. 030What does a closure keep alive in memory?Coming soonCorehard
  4. 040How do closures create private state?Coming soonmedium
  5. 050Implement debounce, throttle, and once.Coming soonCoremedium