7. more practice with switch


#1

this is just a fun little one i did

var answer = prompt("who's ur fav franku");

switch(answer) {
    case 'pink guy':
        console.log("i habe cancer b0ss");
        break;
    case 'chin chin':
        console.log("the dark lord has arrived");
        break;
    case 'filthy frank':
        console.log("just got prank'd");
        break;
    case 'salamander guy':
        console.log("nyeeeeees");
        break;
    case 'safari dude':
        console.log("wyld");
        break;
    default:
        console.log("u dont know papa franku?");
        break;

  
}

#2

In this code if we select mango means the corresponding msg Hey it is my favorite fruit, this sentence should display in editor, but its displaying default corresponding sentence why?

var answer = prompt("Add your question here!");

switch(answer) {
case 'orange':
console.log("It will become fruit also & colour also!");
break;
case 'Mango':
console.log("Hey its my favorite fruit");
break;
case 'Jackfruit':
console.log("I love this fruit");
break;

        default :
        console.log("All the fruits i like");

break;
}