9. Switch statement keeps coming up wrong


#1

Hi, please can you tell me where I'm going wrong?

The question asks to write a switch statement from scratch, the error message is a syntax problem. This is the code I wrote:

switch(vegetarian food) {
case 'indian':
console.log("spicy veg curry");
break;
case 'italian':
console.log("mushroom risotto");
break;
case 'mexican':
console.log("black bean quessadilla");
break; }

default:
console.log("no vegetarian food available");
break;

`


#2

Hi this part

switch(vegetarian food)

you should remove the space between vegetarian and food with a _

then you should put the

default:
console.log("no vegetarian food available");
break;

inside the switch statement