Gotta love Coding ! Need some assistance


#1


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


It's keep saying, "There's a problem with my syntax." and in the interpreter screen on the right says, "Unexpected token else" but i'm assuming all my else statements are good from the looks from it. . Where did I mess up at ?


Replace this line with your code. 
var user = prompt("Are you ready to travel?").toUpperCase();

switch(user) {
    case "YES":
        var accessories = prompt("Do you have your essential traveling items?");
        var shoes = prompt("Do you have comfortable shoes?");
        if(shoes === "yes" && accessories === "yes"); {
            console.log("Let's go on an adventure!");
        } else if(shoes === "yes" || accessories === "yes") {
            console.log("Half prepared")
        } else {
            console.log("You should make sure you have those, you going to be moving a lot.");
        }
    break;
    case "MAYBE":
        var think = prompt("Are you sure ?");
        var miss = prompt("Really?")
        if(think === "yes" || miss === "yes"); {
            console.log("Might want to sit down and think about it then.")
        } else if(think === "yes" && miss === "yes") {
            console.log("Ok fine")
        } else {
            console.log("Whatever dude");
        }
    break;
    case "NO":
        var lame = prompt("You sure you don't want to explore the world ?");
        var come = prompt("You rather stay home for the rest of your life ?");
        if(lame === "yes" || come === "yes") {
            console.log("Alright suit yourself");
        } else if(lame === "yes" && come === "yes") {
            console.log("Cool beans")
        } else {
            console.log("Then don't miss out on a great adventure!")
        }
    break;
    default: 
        console.log("Take your time");
};


#2

Try removing the semicolons before the curly brackets.


#3

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