
Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
In JavaScript, a function can return a closure. A closure is defined as a function and the variables declared around it (it's lexical environment).
A count variable can be initialized in the outer function and mutated in the inner function.