Module 2 · Check it yourself · challenge 2 of 3 in this lesson
A Counter module table has increment() and get() functions
You compare your work with the list of what done means.
Open
Level 2, Builder
Challenge
Write a module whose state is private but shared by everyone who requires it.
- Start from
- Any Run cell in this lesson
Done means
- A Counter module table has increment() and get() functions
- Its count lives in a private local, not on the returned table
- Two requires through the fake require above share one count
Meet the criteria above, then record your own result. No test grades this check.