7/9 unexpected else?


#1
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

You use a semicolon between conditions. Here is a post that should explain why this needs to be avoided and why it creates this error:

https://www.codecademy.com/forum_questions/52373a75548c3515940000dc#answer-529fa36052f863bb58000338