Computer Science, asked by Twilight6267, 8 months ago

Write a JavaScript program to find out whether the given year is leap or not. Use prompt box for input the year.

Answers

Answered by Bigdahero90
0

Answer:

1 function check_leapyear(){

var year

2 year = document. getElementById("year"). value;

3 if( (0 == year % 4) && (0 != year % 100) || (0 == year % 400) )

4 alert(year+" is not a leap year");

5 <h3>Javascript Program to find leap year</h3>

6 <button onclick="check_leapyear()">Check</button>

7 <h5>By tutorialsmade. com</h5>

Explanation:

Mark me as Brainlist

Answered by tishtha0902007
0

hope so it will help you

Attachments:
Similar questions