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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started