4.switch, passes but doesn't do what it should


#1

Hello, my code will be at the bottom. When I run the code, I get the prompt and I put in yes, but it goes straight to default instead of running the case 'yes': any ideas?

var user = prompt("Are you hungry?","Yes, maybe, no.").toLowerCase();
switch(prompt){
    case 'yes':
        console.log("Menu: Quesadilla, Burrito, Pizza.");
        var meal = prompt("Using the menu to order, what would you like to eat?").toLowerCase();
        switch(meal){
            case 'quesadilla':
                console.log("Alright, I'll have that out in a jiffy!");
                break;
            case 'burrito':
                console.log("Alright. It will be out soon!");
                break;
            case 'Pizza':
                console.log("Oh, I'm sorry, we're out of stalk right now, why don't you choose something else?");
                break;
            default:
                console.log("Please choose something on the menu.");
        }
        break;
    case 'maybe':
        console.log("Why don't you come back when you're a bit hungrier? We have huge portion sizes here.");
        break;
    case 'no':
        console.log("Well, come back when you are!");
        break;
    default:
        console.log("Well, you either are, aren't, or don't know. So choose one!");
}

#2

The switch statement is going to "prompt" and not your variable, change:

switch(prompt) {
//to
switch(user) {

#3

Of coursee thank you!