Basic of Closure in JavaScript.
A Closures is created when an inner function tries to access the scope chain of its outer function.
Closures contains their own scope chain, the scope chain of their parents, and the global scope.
A closure can also access the variables of its outer ...
codinginterviewpractice.hashnode.dev1 min read