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
Get step-by-step solutions from verified subject matter experts
