GP Solutions Interview Question

Explain how closures work in JavaScript and give an example.