about | help | code help+videos | done | prefs |
Marvin sets his alarm for 5am on every day except for Saturday and Sunday. On Saturday and Sunday, he sets his alarm for 6am. Given the day of the week as a String, return the time that Marvin should set his alarm for. alarmTime("Monday") → "5am" alarmTime("Sunday") → "6am" alarmTime("Tuesday") → "5am" ...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: 100
Copyright Nick Parlante 2017 - privacy