More practice with switch


#1

hi really smart people,

can you guys see what i am missing in this code??

var answer = prompt("what do you want to eat?");

switch(food) {
case 'chips':
console.log("that sounds nice!");
break;
// Add your code here!
case 'garlic bread':
console.log("garlic bread and chips!!");
break;
default:
console.log("now your talking");
break;
}


#2

HI this line

switch(food)

since you saved the prompt inside the answer so you should change in this line food with answer


#3

thank you, i shouldn't of changed it.


#4