What is the real use of closures in javascript?
can you explain the concept with a simple example.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajeesh MenothPosted Jan 9, 2016, 6:52 AM
JavaScript variables can belong to the local or global scope.
Private variables can be made possible with closures.