Course · Section 17: Modern JavaScript Development: Modules, Tooling, and Functional · Lecture 286: The Module Pattern
Implement `moduleCounter(times)` using the module pattern: an IIFE returns an object with `inc` and `get`, keeping the count private. Increment `times` times and return the count.
+ 1 hidden test run on Submit.
The module pattern uses an IIFE closure to keep state private and expose only chosen methods.
Run your code to see results.