about | help | code help+videos | done | prefs |
Ms. Yamagata loves the Giants! When she's watching a home game, she wears her lucky orange hat with black lettering. When she's watching an away game, she wears her lucky black hat with the orange lettering. Given a string (either "home" or "away"), return "orange" if the Giants are playing a home game or return "black" if they are playing an away game. hatDecision('home') → 'orange' hatDecision('away') → 'black' ...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: 125 Post-solution available
Copyright Nick Parlante 2017 - privacy