Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Level 4 lesson 7

using the right still not respondin
by

2 Answers

sam5epi0l
Try this code:


let signal = "red";

/ complete the code /

switch(signal){
case 'green':
console.log("Go");
break;
case 'yellow':
console.log("Wait");
break;

case 'red':
console.log("Stop");
break;

}
Digitalv561w
let signal = "red";

switch(signal)

{
case "green":
console.log("Go");
break;
case "yellow" :
console.log("Wait");
break;
case "red" :
console.log("Stop");
break;
}

Login / Signup to Answer the Question.