Closures in JavaScript
The closure is a collection of functions with a lexical environment.
Meaning of Lexical Environment/ Scoping
The scope has the ability of function scope to access the variables from the parent scope.
Here have some examples:
First example:
let a = 10...
blessie-blog.hashnode.dev1 min read