Switch


#1

Does anyone find the mistake? I don't understand it..

var user = prompt("How is your day going?").toUpperCase()

switch(user) {
case "GOOD":
console.log("That's Great");
break;
case'OK':
console.log("Better Than Nothing");
break;
case:'BAD':
console.log("Then Have A Better Day");
break;
default:
console.log("INVALID AWNSER")
}


#2

Test your code _here_.it will help you debug it


#3

Thanks @rydan"!!! That website is exactly what I need :slightly_smiling: