write a javasctipt to show a year is leap year or not thru alert message
Answers
Answered by
1
Explanation:
function check_leapyear(){
var year;
year = document. getElementById("year"). value;
if( (0 == year % 4) && (0 != year % 100) || (0 == year % 400) )
alert(year+" is not a leap year");
Similar questions