Leap Year Checking

Leap Year Checking

Check if the given year is leap year. A year is a leap year if it is divisible by 4, except for end-of-century years which must be divisible by 400. This means that the year 2000 was a leap year, although 1900 was not.

example

Input: Integer (number).

Output: Logic value (boolean).

Examples:

assert.strictEqual(isLeapYear(2000), true);
assert.strictEqual(isLeapYear(1900),...
You should be an authorized user in order to see the full description and start solving this mission.