SyntaxERROR: unexpected token )


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!")
    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.")
    case 'maybe' :
        console.log("Maybe you just need more time to think about it");
    console.log("Sorry, I didn't understand your answer");


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


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


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