Question: Create a web page called Days.html that uses prompt() to ask the user for a month number. It should then use two separate decision structures

Create a web page called Days.html that uses prompt() to ask the user for a month number. It should then use two separate decision structures (one with switch, one with if/if-else) to output the corresponding month name and the number of days in that month. For example, entering "5" should identify the month as May and indicate that it has 31 days. Notes:

You do not need to consider leap years

For full points, you must use both if (or if-else) statements AND a switch statement to complete the task. Javascript only please!

Here's what I have so far:

Days

Days

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!