Question: 1 ) Open the starter application ( zipped ) attached to this Assignment folder: a ) Evaluations Assignments Assignment 2 Part 1

1) Open the starter application(zipped) attached to this Assignment folder:
a) Evaluations\Assignments\Assignment 2\Part1-count_down.zip
2) Start the application, enter an invalid date like the one shown above, and note that the error message doesnt accurately describe the error.
3) In the JavaScript file, find the if statement that checks whether the date string has a four-digit year. Following this code, add code that gets the month and day from the dateParts array that was created earlier in the code.
4) Add code that checks that a valid day was entered depending on the month that was entered. For example, April can have the days 1 through 30, and May can have the days 1 through 31. Be sure to account for leap years, which are years that are evenly divisible by 4. If the days are invalid, display an appropriate error message and return.
5) Add code that displays an error message and returns if a month other than 1 through 12 are entered.
6) 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 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!