Pergunta de entrevista da empresa Alif

Explain the concept of closures in JavaScript. Provide an example.