I am getting a Syntax Error:Unexpected Token ILLEGAL in 5.Logical operators can someone help?


#1



https://www.codecademy.com/courses/javascript-beginner-en-ZA2rb/0/5?curriculum_id=506324b3a7dffd00020bf661

SyntaxError: Unexpected token ILLEGAL

var user=prompt("What food do you like?").toLowerCase();
switch(user){
    case'burger':
        {
        console.log("I like burgers  too");
        }
    break;
    case 'salad':
            console.log("Salad is not a food");
    break;
    case 'cereals':
        console.log("You must only eat breakfast")
    break;
    default:
        console.log("Food mofo,do you eat it?")
}
var answer=true;
if (answer)
{
    console.log("I also like having a drink with my food");
    
    var drink=prompt("What drink would you like to have?").toLowerCase(); 
    switch(drink)
    {
        case'Vodka':
        console.log("I like vodka too");
        drink=true;
        break
        case 'Jack':
        console.log("Jack is the best drink")
        drink=true;
        break
        default:
        console.log("Whatever suits your needs")
        drink=true;
    }
}
else
{
    console.log("No drink?");
    drink=false
}
if (answer||drink)
{
    console.log("We can have a dinner and drinks after")
}
else{
    console.log("Dinner,no drinks then")
}
if(answer&&drink){
    console.log("We'll go out then)
}


#2

try adding semi colons where required and that quotation marks are used inside the parentheses after all the console.logs.


#3

I missed a quotation mark at the last console.log!Thanks for reminding me