Question d’entretien chez GP Solutions

Explain how closures work in JavaScript and give an example.