Question: TASK2: (3pts) Write a javascript code to prompt the user to enter his/her next birthday date (Example: 12,2,2021). The program should take this input (as

 TASK2: (3pts) Write a javascript code to prompt the user to

TASK2: (3pts) Write a javascript code to prompt the user to enter his/her next birthday date (Example: 12,2,2021). The program should take this input (as shown in Figure 4) and display how many days:hours:minutes:seconds remaining until his/her birthday (Figure 5). Use setinterval() to iteratively update this every second by decrementing it until the date of his birthday is reached. Once reached, display "HAPPY BIRTHDAY. This page says Enter the date of your next birthday in the format of day, month, year 15,2,2021 OK Cancel Figure4: User Prompt Time Remaining 38d 19h 6m 59s Figure5: time remaining updated every second

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!