Domanda di colloquio di Codesoft

Explain the concept of closures in JavaScript.