Explain it in 60 seconds
Closures
Backend Engineering · Language Runtimes · Beginner
What is a closure?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Function that captures variables from its surrounding scope.
- Keeps them alive after outer function returns.
- Used for callbacks, handlers, factories.
- Can cause leaks if capturing big objects.
- Loop variable capture gotchas.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.