What is Closure in Javascript
Closure is a powerful mechanism in JavaScript.
To understand closure better, it helps to understand how lexical scoping works.
Lexical scoping, in essence, defines the scope of a variable relative to the position it was declared in the code.
For ex...
sebuelias.hashnode.dev4 min read