Pegasystems Interview Question

explain closure in JavaScript