Sollicitatievraag bij NuGen IT

What is a closure in JavaScript?

Antwoord op sollicitatievraag

Anoniem

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.