Loading…

What is a closure JavaScript? Explain

It’s a JavaScript feature where an inner function has access to the enclosing or outer function’s variables, which is defined as a scope chain.

There are three types of scope chains:
  • Access to its own scope
  • Access to variables of outer functions
  • Access to global variables

Suggest An Answer

No suggestions avaliable!

Latest post from Javascript interview questions

Ask Question