Intel Corporation interview question

In JavaScript, what is the purpose of a closure?