Help me 6/9 Unexpected end of input


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

you forgot so closing } for the function so as it is still open the interpreter is confused about an "Unexpected end of input".