Intel Corporation Interview Question

In JavaScript, what is the purpose of a closure?