Pooja Singhal

Digital Marketing & Javascript Tips & Updates

What is closure in javascript?

In JavaScript, a closure is a feature that allows a function to access variables defined in its outer lexical scope even after that function has finished executing. In other words, a closure is formed when a function is defined inside…

Back to top