Domanda di colloquio di Intel Corporation

In JavaScript, what is the purpose of a closure?