Course · Section 10: A Closer Look at Functions · Lecture 144: Closures
Implement `useToggle(initial)` returning `{ toggle(), value() }` where toggle flips a boolean and value reads it.
+ 1 hidden test run on Submit.
A closure variable flipped by toggle implements the classic useToggle hook logic.
Run your code to see results.