Deviopath › JavaScript

Leap Year

Easy · Conditional Logic

Write a function isLeapYear that returns true if the year is a leap year.

A year is a leap year if it is divisible by 4, except years divisible by 100, which are only leap years when they are also divisible by 400.

Next: Multiplication Table Row