0

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

if

10/17/2019 4:09:11 PM

Tony

2 Answers

New Answer

+2

https://code.sololearn.com/cjhG7aMUgi2f/?ref=app

+1

You can do like this if(year % 4 == 0) { alert(year); }