Help please! Cannot find my Syntax error!


var user= prompt("You're going to Disneyland, do you want to RIDE, EAT, or RELAX?").toUpperCase();
    case 'RIDE':
    var Ride1= prompt("Do you want to ride Space Mountain?").toLowerCase();
    var Ride2=prompt("Do you want to ride Splash Mountain?").toLowerCase();
    if (Ride1 ==='yes' || Ride2==='yes'){
        console.log("Good Choice, we should go on those first!");
    } else{
        console.log("All of the other rides are a waste of time!");
    case 'EAT':
    var Food1= prompt("Do you want a Turkey Leg").toLowerCase();
    var Food2= prompt("Do you want some ice cream").toLowerCase();
        console.log("Lets go, I'm starving");
        console.log("Everything else is too expensive!");
    case 'RELAX'
    var chill1= prompt("Do you wanna just people watch?").toLowerCase();
    var chill2= prompt("Should we find some shade?").toLowerCase();
        console.log("Lets find a place to sit");
        console.log("You're right, we didn't come here to sit");
    console.log("That's not an option. Run this again and choose either RIDE, EAT or Relax!");


You missed : after case 'RELAX'.


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