Which problem in my code?


#1

which problem in my code ?


8/9 What if choice1 is scissors?
#2

hi this part you forgot to close the else if statement

else if(choice1 === "papel") { 
    if(choice2 === "pedra"){
        return "papel vence";
    }
    else {
        return "tesoura vence";
    }
} <== add on here

then this part you have more } than you need so remove one} after your else statement

else if(choice1 === "tesoura"){
    if(choice2 === "pedra"){
        return "pedra vence";
    }
    else {
        return "tesoura vence";
    }
}
} 
};