Pregunta de entrevista de Codesoft

Explain the concept of closures in JavaScript.