Why does this not work?


#1

var color = prompt("What's your favorite primary color?","Type your favorite color here");

switch(color) {
case 'red':
console.log("Red's a good color!");
break;
case 'blue':
console.log("That's my favorite color, too!");
break;
//Add your case here!
case 'yello':
console.log("Yello is not good");
break;
default:
console.log("I don't think that's a primary color!");
}


#2

Your code looks fine, and it works good. The only problem is that you typed 'yello' instead of 'yellow'. That makes a big difference!