Write a program that will take a year and report if it is a leap year.
The tricky thing here is that a leap year in the Gregorian calendar occurs:
- Every year that is evenly divisible by 4
- Except every year evenly divisible by 100
- Unless the year is also evenly divisible by 400
This problem was not challenging at all. However, I did struggle with the JS fundamentals since I’m not at all familiar with JS yet. This was good exposure on what to focus one: module patterns and anonymous closures.