Switch last assigment


#1



var hero = prompt("Which is your favourite marvel super hero??");

switch(answer){
    case'Iron-Man':
        console.log("Rich Soilt billionaire with a suit");
        break;
    case 'Captain-America':
        console.log("A true American hero!");
        break;
    case 'Thor':
        console.log("The god of thunder");
        break;
    default:
    console.log("Hmmm. You must be DC fan");
    break;
};

For every input its only giving the default output. Please Help...


#2

You are inputting hero but are switching answer :wink:


#3

replace answer with hero