Question: 1 ) Open the starter application ( zipped ) attached to this Assignment folder: a ) Evaluations Assignments Assignment 2 Part 1
Open the starter applicationzipped attached to this Assignment folder:
a EvaluationsAssignmentsAssignment Partcountdown.zip
Start the application, enter an invalid date like the one shown above, and note that the error message doesnt accurately describe the error.
In the JavaScript file, find the if statement that checks whether the date string has a fourdigit year. Following this code, add code that gets the month and day from the dateParts array that was created earlier in the code.
Add code that checks that a valid day was entered depending on the month that was entered. For example, April can have the days through and May can have the days through Be sure to account for leap years, which are years that are evenly divisible by If the days are invalid, display an appropriate error message and return.
Add code that displays an error message and returns if a month other than through are entered.
In index.html change the text in the tag to your name and student number.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
