Pregunta de entrevista de Placester

What is a closure in JavaScript, and when would you use one?