Pergunta de entrevista da empresa Codesoft

Explain the concept of closures in JavaScript.