Switch :No syntax error, but problems with returns?



No error messages, it's quite happy with the actual code, but all of the names are returning the console log for default. Not sure what's happened.

var user = prompt("what's your name?").toUpperCase();
switch (user){
    case 'Jenny':
    console.log("Do you know Forest Gump?");
    case 'Clara':
    console.log("Have you ever traveled through time");
    case 'Lisanne':
    console.log("That's an awesome name");
        console.log("I've never heard that name before. It's pretty.");


var user = prompt("what's your name?").toUpperCase();

you are making input to uppercase but for checking you mixed case

case 'Jenny':


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.