about | help | code help+videos | done | prefs |
People are not wearing enough hats! The parameter 'quant' tells the quantity of hats people are wearing. Return 'true' if people are wearing 10 or more hats. However, if the parameter 'tooMuch' is true, it means that people should not be wearing more than 20 hats. In that case, only return 'true' if people are wearing between 10 and 20 hats inclusive. funnyHatWearing(14, true) → true funnyHatWearing(14, false) → true funnyHatWearing(23, false) → true ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 210
Copyright Nick Parlante 2017 - privacy