logo
logo

Leap Year Checker

Beginner

Leap Year Checker

Write a function that takes a year as input and logs to the console whether it is a leap year or not. A year is a leap year if it is divisible by 4 but not by 100, or if it is divisible by 400.

Console
Submit
Solution
00:00