NuGen IT interview question

What is a closure in JavaScript?

Interview Answer

Anonymous

3 Nov 2025

A closure is when a function remembers and can access variables from its parent scope even after that parent function has finished executing.