eKalasaala interview question

What is the use of closures in JavaScript?