3/6 Switch


#1

var user = prompt("Im going in to fight Majin Buu. What do you do to help me?").toLowerCase();

switch(user) {
case 'fuse':
console.log("Hurry up and put the earring on!");
break;
case 'gather the dragon balls':
console.log("Smart just in case I get wasted.");
break;
case 'run':
console.log("Up yours chump that is a chump move!");
break;
default:
console.log("I guess that works too chump.");
}

I keep getting an error saying ! Make sure to use a break statement with each case!
Please help I checked and i think i have all the break statements


#2

default:
 console.log("I guess that works too chump.");

make sure you add a "break" in this case! Hope it helps


#3

that worked thank you I didnt know the default needed a break as well


#4

The default case does not really need a break but it's good programming habit anyway.