Create a function to determine if a given year is a leap year.
A year is a leap year if it is divisible by 4. However, if the year is a century (divisible by 100), it must also be divisible by 400 to qualify as a leap year.
Join the discussion to share your approach and learn more about this topic.
Participate in the Daily JavaScript Challenge by following the provided link.