0

Use modulo operator to check if a year is a leap year.

17th Oct 2019, 4:09 PM
Tony
2 odpowiedzi
17th Oct 2019, 4:20 PM
Shadow Ninja[#Inactive]
Shadow Ninja[#Inactive] - avatar
+ 1
You can do like this if(year % 4 == 0) { alert(year); }
17th Oct 2019, 5:17 PM
A͢J
A͢J - avatar