Please help me through my code


#1



It says that yes not defined or NO is not defined


var user = prompt("What are want? FIGHT, RUN, KILL").toUpperCase();

switch(user){
    case 'FIGHT':
        var hand = prompt("Do you want to fight with hand").toUpperCase();
        var leg = prompt("Do you want to fight with leg");
        if(hand === yes || leg === yes)
        {
            console.log("you beat the beast");
        }
        else{
            console.log("you lost");
        }
        break;
    case 'RUN':
        var bike = prompt("Do you want to run away with bike");
        var plane = prompt("Do you want to fight with nude girl");
        if(bike === no && plane === yes)
        {
            console.log("You can't run coward");
        }
        else{
            console.log("You simply ran away like with HOT- NAKED Girl");
            }
            break;
    case 'KILL':
        var sword = prompt("Do you want to use SWORD");
        var gun = prompt("Do you want to use GUN");
        if(sword === yes || gun === yes)
        {
            console.log("You may proceed with either of it");
        }
        else{
            console.log("you can't fuck with me");
        }
        break;
        default: 
        console.log("you can do better than this");
        break;
}


#2

Got it. It was simple :stuck_out_tongue: