DEV Community

Discussion on: JavaScript closure is easy to understand. But difficult to explain. Agree?

Collapse
shahrozahmd profile image
Shahroz Ahmed

Nope.. I dont think so.. if you know the concept of execution context Object you can easily understand how closure works. Let me Simplify it for you "if you have nested functions, you inner functions have always access the variables and functions of its parent or outer function".