6/14


#1

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

switch(candy) {
case 'licorice':
console.log("Gross break;
case 'gum':
console.log("I gum!");
break;
case 'beets':
console.log("...is that even a candy?");
break;
default:
console.log("We don't have this one");
}


#2

What am i doing wrong :confused:


#3
console.log("Gross break;

I think you were meaning to have that be

console.log("Gross");
    break;

#4

Wow...
XDDD
THANKS bro, i didn't see that. i lost my glasses today, so its hard at the moment


#5

Hey man I don't judge. There are a lot of silly mistake that mean a lot in coding. I myself have had to sit in front of a project I've worked on for several hours, just to realize that I had missed a closing bracket somewhere.