JavaScript 17 🧬 closure
A closure is a function that retains access to its lexical scope, even when the function is executed outside of that scope. This means a closure can “remember” and access variables from the environment in which it was created — even after that environment has finished executing. A Quick Look at the Examples a. Closure…