JavaScript
What are closures in JavaScript?
A closure is a function that retains access to its outer function's variables even after the outer function has finished executing.
A closure is a function that retains access to its outer function's variables even after the outer function has finished executing.