Q31. What is a Closure in JavaScript? A31. A closure is an “inner function” that has access to the “outer function’s” variables—scope chain. The closure has three scope chains: 1) It has access to variables defined between its curly brackets….
(Visited 1 times, 1 visits today)