Unexpected token else


#1

https://www.codecademy.com/courses/javascript-beginner-en-Bthev-mskY8/1/2?curriculum_id=506324b3a7dffd00020bf661#

SyntaxError: Unexpected token else.
My code lines up perfectly with the hint. I don't see what's wrong here.

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";
        };
};

#2

A case of way too many semi-colons...

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";
        }
    }
};

One closing brace added to close else if. The semi-colons shown are the only ones that are needed.