SyntaxERROR: unexpected token )


#1


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


I can't find the syntax error please help


var user = prompt("Do you want to learn more languages after JS? Type 'yes', 'no' or 'maybe'.").toLowerCase();
switch(user) {
    case 'yes':
        var howMany = prompt("How many more do you want to learn?");
        if(howMany === 2 || 3 >= ) {
        console.log("You're going to become a master coder!")
        }
        else {
            console.log("I'ts okay to start off slow!")
        }
        break;
    case 'no' :
        var reason = prompt("Why don't you want to learn more?").toLowerCase()
        if(reason === "hungry" && "tired") {
        console.log("Wow! You're both hungry and tired? You need a break!")
        }
        else {
            console.log("We all have our reasons.")
        }
        break;
    case 'maybe' :
        console.log("Maybe you just need more time to think about it");
        break;
    default:
    console.log("Sorry, I didn't understand your answer");
};


#2

Please take a look at your if blocks, your conditions are syntactically wrong


#3

I fixed it thank you. It was the block with the howMany variable


#4

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