Question: Attached is a simple switch statement that doesn't work. 1. Find out what is wrong and fix it 2 Document what you did to find
Attached is a simple switch statement that doesn't work.
1. Find out what is wrong and fix it
2 Document what you did to find it, what was wrong with it, and what you did to fix it
3. Attach the corrected code and the document in this assignment.
var color = prompt("Select red, white, or blue","");
switch (color.toUpperCase()) { case "blue": alert("You chose Blue"); break; case "red": alert("You chose Red"); break; case "White": alert("You chose White"); break; default: alert("Cannot be determined"); break; }
Lesson 4 Project
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
