4. Sneak preview: the switch statement


#1

var lunch = "lunch";
prompt("What do you want for lunch?","Type your lunch choice here");

switch(lunch){
case 'sandwich':
console.log("Sure thing! One sandwich, coming up.");
break;
case 'soup':
console.log("Got it! Tomato's my favorite.");
break;
case 'salad':
console.log("Sounds good! How about a caesar salad?");
break;
case 'pie':
console.log("Pie's not a meal!");
break;
default:
console.log = ("Huh! I'm not sure what " + lunch + " is. How does a sandwich sound?");
break;
}

My question is why does this not send up the prompt ("What do you want for lunch?")???
I have ran it a few times and it just prints out the default.
Can you please help?

Thank you in advance


#2

console.log doesn't need any sign


#3

Remove "lunch" from after the equal and add in your prompt