Question: Hello, I'm working with JavaScript and would like to know how I could use the Window Prompt method to ask users to choose between 3

Hello, I'm working with JavaScript and would like to know how I could use the Window Prompt method to ask users to choose between 3 foods, then render an image with a description about that food after they have chosen one. There should also be a heading for the content above the image that says "You Chose (input value), please see photos of what I mean below.

Hello, I'm working with JavaScript and would like to know how I

I should also make sure that I normalize their inputs by converting their string text to lowercase using the string method of the same name and make sure I create a default choice if the users' input does not match any you have defined. So, depending on the condition render different content on the web page.

could use the Window Prompt method to ask users to choose between

Note: You can use an if/else statement or switch statement it is up to you (I'd rather use the switch statement, but if that's not possible, I'm okay with that!).

Please enter one of the following flavors Red Bean Cancel Asia - _jors Click the button to learn more about some Asian ice cream flavors! Ice Cream You Chose Black Sesame Black sesame ice cream is a popular flavor in Japan, Taiwan, China, and many Asian countries. This ice cream has delicious nutty taste and is usually not overly sweet. a Asian Ice Cream Flavors Click the button to learn more about some Asian ice cream flavors! Ice Neam You Chose Red Bean Red bean ice cream is a popular flavor in Japan, Korea, Hong Kong, and many other Asian countries. This

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!