Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

2. KMPG LLP

Answered: 1 week ago

Question

5. Wyeth Pharmaceuticals

Answered: 1 week ago