var color = prompt("enter color");
switch(color) {
case "red":
console.log("stop")
break;
case "green":
console.log("go head")
break;
case "yellow":
console.log("get ready")
break;
default:
console.log("enter valid color")
}