Computer Science, asked by harijanbasanti41, 5 months ago

write a javasctipt to show a year is leap year or not thru alert message​

Answers

Answered by Anonymous
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