Lesson 8 All by yourself


#1

this is my code, i cant get it to work it keeps saying "missing ) after argument list" PLEASE HELP!!

var answer = prompt("candy?");
switch(answer) {
case 'snickers':
console.log("snickers is the devil, but it feels sooooo good!");
break;
case 'milkyway':
console.log("milkyway is for losers");
break;
case '100grand':
console.log("100 grand is aight");
break;
default:
console.log("screw" + " " + answer + " " ",that stuff is wack.");
break;
}


#6

There's an out-of-place " " on line 13, not sure why it figures that there is a missing ), can't say I know much about JS


#7

hey thanks man, I guess my eyes were tired and I forgot to put the + before the " " that i used to make an extra space. Thanks person. Ive been stuck for a while.