Course · Section 10: A Closer Look at Functions · Lecture 144: Closures
Implement `runCounter(start, times)` that creates an internal counter starting at `start`, calls the increment function `times` times, and returns the final counter value. (This exercises building and using a closure internally.)
+ 2 hidden tests run on Submit.
The inner function captures a private counter by closure, so repeated calls advance the same state.
Run your code to see results.