Logical Operations problem


#1


https://www.codecademy.com/courses/javascript-beginner-en-ZA2rb/0/5?curriculum_id=506324b3a7dffd00020bf661

Help, I always get an error: "Prompt is not in function!"
What prompt?

var user = prompt("You're walking down the streets, and you see ORCS. Do you FIGHT, PAY them, or RUN?") .toUpperCase();
switch(user) {
    case 'FIGHT':
    var questionOne = prompt("Are you sure? they are ORCS!").toUpperCase();
    if(questionOne === 'YES'){
        console.log("you die!");
    }
    else if(questionOne === 'NO'){
        var questionTwo = prompt("Are you smart?").toUpperCase();
        var questionThree = prompt("Do you have .357?").toUpperCase();
        if( questionTwo === 'YES' || questionThree === 'YES') {
      console.log("You only need one of the two! You beat the ORCS.");
        }
      else {
          console.log("You die!");
        }
     
    }
    break;
    case 'PAY':
    console.log("ORCS love money. But they are still going to shoot you.");
    break;
    case 'RUN':
        console.log("YOU FOOL! They are ORCS, they have +10 on speed!");
        break;
        default:
        console.log("Whatever, they'll kill you, then burn your house down.");
        
}


#2

@zuz94,
Have you tried a refresh Browser ??

++++ reset of session *****************
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser

and

Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

Addendum
General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).