Pregunta de entrevista de Intel Corporation

In JavaScript, what is the purpose of a closure?