JavaScript Closures in Simple Words

What is closures?

To put it in simple words, closure is a function returning an inner function. And the returning function can remember and has access to the variables in its lexical scope.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.