What is a closure in JavaScript, and how is it useful?
Réponse à la question d'entretien
Utilisateur anonyme
10 juil. 2025
I explained closures with an example where a function remembers the variable from its parent scope. I also gave a use case using counters and private variables.