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
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
0
hope so it will help you
Attachments:
Similar questions
History,
6 months ago
Computer Science,
6 months ago
Biology,
6 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Biology,
1 year ago