When I type in my cases my default keeps coming up, It says i passed the lesson but something isn't right and I've tried it without the quotations as well. update only the last two do that


#1


switch(user){
    case'very weak':
        console.log("Did you really think you had strength, you couldn't be more wrong");
        break;
    case'kinda weak':
        console.log("You have a long way to go before you can face me.");
        break;
    case'average strength I guess':
        console.log("Average enough to get you killed, STAND DOWN.");
        break;
    case'I mean I"m kinda strong':
        console.log("Well ■■■■ i wasn't tryna come at you crazy or nothing");
        break;
    case'I"m strong as f**k':
        console.log("One question,can I be one of your henchmen, I didn't know you were so strong and I'm sorry if I said something out of line.");
        break;
        default:
        console.log("You didn't answer my question correctly, okay then you must be a weakling and now I'll proceed to grinding your bones to make my bread");
}


Replace this line with your code. 



#2

HI DOES YOUR PROMPT LOOK LIKE THAT?

var user = prompt("Here your text");

#3

Please give us the link to you lesson.


#4

Hi i found your lesson.
Could it be that your code fom the lesson before looks like this

var user = prompt("Your text here").toUpperCase();

or like this

var user = prompt("Your text here").toLowerCase();

Than the cases must be upper cases or lower cases.


#5

var user= prompt("You think you are strong, but how strong exactly?").toLowerCase();


#6

I thought they meant that it would turn all characters lowercase when you typed in your prompt answer.


#7

You rigth but this will never work

 case'average strength I guess':

because you have the I uppercase so it's better if you remove the .toLowerCase() if you want it to work or you can change it to

case'average strength i guess':

#8

Remove is a bad idea :slight_smile:


#9

So He Will do

you can change it to
case'average strength i guess':


#10

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