7/9 i have no idea where i went wrong :/


#1

there must be something wrong im not seeing :confused:

var compare = function(choice1, choice2) {
    if(choice1 === choice2) {
        return "The result is a tie!";
    }
else if(choice1 === "rock"){
    
    if(choice2 === "scissors") {
        return "rock wins";
}else{
        return"paper wins";
    } else if (choice1 === "paper") {
            if (choice2 === "rock") {
                return "paper wins";
            } else {
                return "scissors wins"
    }}}};

#2

your missing a closing } right before the second else if.
PS: And if you add it there it might be necessary to remove one at the end.