What is closure in JavaScript and example? What is use of closure?
Hello Ganesan,Please check the below URLs it will help you:https://www.w3schools.com/js/js_function_closures.asphttps://www.tutorialsteacher.com/javascript/closure-in-javascripthttps://medium.com/javascript-scene/master-the-javascript-interview-what-is-a-closure-b2f0d2152b36