5. Logical Operators - help 'There was a problem with your syntax.'


#1

Hiya,

Can someone please have a look at this and let me know if I'm missing something. Been staring at it for a while so probably very obvious or I've stuffed it up completely!
Im getting the error There was a problem with your syntax.

Thanks

var user = prompt("You're walking through the forest and come to a cliff. Do you JUMP, CLIMB or RUN?").toUpperCase();

switch(user){
case 'JUMP':
var swim= prompt("Its a long way down - hope can you swim? (YES or NO) ").toUpperCase;
var wet= prompt("Hope you dont mind getting wet").toUpperCase;
if(swim === 'YES' && wet === 'YES'){
console.log("SPLASH - See you at the bottom");
}
else {
console.log("Wimp! Take an alternative route");
}
break;

case 'CLIMB':
    var rope= prompt("Do you know know to attach the rope you'll be swinging in no time (YES or NO)").toUpperCase;
    var swing= prompt("Do you know how to glide down safely (YES or NO").toUpperCase;
    if(rope === 'YES' || swing === 'YES'){
        console.log("Telly ho!");
    }
    else {
        console.log("Coward! Take an alternative route");
    }
    break;

case 'RUN':
    var shoes= prompt("Did you bring your running shoes (YES or NO)").toUpperCase;
    var fast= prompt("Will you make it under an hour?").toUpperCase;
    if(shoes === 'YES' && fast === 'YES'){
        console.log("Run forrest run");
    }
    else {
        console.log("Set up a camp, you're staying here tonight");
    }
    break;


default:
  console.log("I didnt understand your choice.  Hit Jump, Climb or Run and try again");

#2

I was missing a } at the end....hours of staring for that