I can't find my syntax error!


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


I also took the example posted in the hint and pasted it in, but it still read "Syntax Error: Unexpected token else." Can I get any help on this???


You're missing a } to close the function.