Module 11 · Check it yourself · challenge 2 of 3 in this lesson
A coinValue function that defaults to the normal value when the flag is missing or the config failed
You compare your work with the list of what done means.
Open
Level 2, Builder
Challenge
Write the Double Coin flag as a pure function with tests.
- Start from
- The game at milestone m06 (download)
Done means
- A coinValue function that defaults to the normal value when the flag is missing or the config failed
- A test for each of: flag true, flag false, no config
- No change to Config.COIN_VALUE
Meet the criteria above, then record your own result. No test grades this check.