Codesoft Interview Question

Explain the concept of closures in JavaScript.