JavaScript Program to Check Leap Year Using Conditional Operator
must support == > https://codepen.io/Bilal1909/pen/dyNzzMz
JavaScript Program to Check Leap Year Using Conditional Operator
must support == > https://codepen.io/Bilal1909/pen/dyNzzMz
For further actions, you may consider blocking this person and/or reporting abuse
Best Codes -
thinkThroo -
Apache SeaTunnel -
Gladiators Battle -
Top comments (1)
I mean it doesn't actually work 😋
1600 - leap year
1700 - not a leap year
1800 - not a leap year
1900 - not a leap year
2000 - leap year.
If the year is divisible by 100 it is not a leap year.
Unless it is divisible by 400, in which case it is a leap year.
A fun one for you to fix, not that it will matter for another 79 years!