Question: Write a JavaScript program which reads in the number of a year (repeat until the user inputs a negative number to stop). Specify whether the

Write a JavaScript program which reads in the number of a year (repeat until the user inputs a negative number to stop). Specify whether the year is or is not a leap year. If the year input is 10000 or more, or 999 or less (except the -1 to stop) print an error message. Comment your program appropriately.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!