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.
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.
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. ThisStep 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