Logical Operations problem



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!");
    case 'PAY':
    console.log("ORCS love money. But they are still going to shoot you.");
    case 'RUN':
        console.log("YOU FOOL! They are ORCS, they have +10 on speed!");
        console.log("Whatever, they'll kill you, then burn your house down.");


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


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

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