iTech India interview question

What is a closure in JS?

Interview Answer

Anonymous

14 Jul 2022

A variable used in a function that is not defined in the functions block or in argument is a closure.