Explain it in 60 seconds
Closures in JavaScript
Frontend Engineering · JavaScript Core · Beginner
What is a closure, and why is it useful?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Function remembers variables from where it was created.
- Persists after outer function returns.
- Private state, factories, callbacks.
- Event handlers use closures.
- Can retain memory unintentionally.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.