Closures in JavaScript.
What is a Closure?
A Closure is bundle of a function along with its lexical environment.
A continuous scope which holds the variables even after it has exited a block after execution so that they can referenced in future is a CLOSURE.
Here, function holds on to the reference to that variable and not the actual value itself and includes the parent scopes as well.
To understand more about closures in depth click on the below button.
Read More