Task: Write a JS function to check whether an year is leap.
Leap years are either divisible by 4 but not by 100 or are divisible by 400.
-
The input comes as a single number argument.
-
The output should be printed to the console. Print yes if the year is leap and no otherwise.
Examples:
Input:
1990
Output:
no
Input:
2000
Output:
yes
Input:
1900
Output:
no