about | help | code help+videos | done | prefs |
Your first task is to search the criteria for leap year (and you'd be surprised it's a little more than what most think). Define a function that when passed the value for a year, returns true if it's a leap year, false otherwise. If you are not sure where to begin, just search on wikipedia (yes, wikipedia is awesome!) for "leap year". isLeapYear(1900) → false isLeapYear(1800) → false isLeapYear(1700) → false ...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: 3 Post-solution available
Copyright Nick Parlante 2017 - privacy