Course · Section 10: A Closer Look at Functions · Lecture 144: Closures
Implement `useCounter(initial)` returning an object with `increment()`, `decrement()`, `reset()`, and `value()`, keeping the count private (the logic behind a useState counter hook).
+ 1 hidden test run on Submit.
The closure keeps count private and the returned methods mutate it, mirroring a custom counter hook's behavior.
Run your code to see results.