Meta Interview Question

What is a closure and state its use?

Interview Answer

Anonymous

Dec 31, 2021

A closure is well manifested when we have a function nested in another outer function. In situations like that, the inner function aside from having access to its own scope also has access to the scope of the outer function and the main document object.