Codesoft interview question

Explain the concept of closures in JavaScript.