Understanding closure in JavaScript
A closure is an inner function that has access to the outer (enclosing) function’s variables — scope chain
The closure has three scope chains
It has access to its own scope (variables defined between its curly brackets)
It has access to the outer ...
chinecherem.hashnode.dev2 min read