"Unexpected Token {" on 7/9


#1

Well this is probably an easy fix but I'm not aware of the solution though.

var compare = function(choice1, choice2){

if (choice1 === choice2){
return("The result is a tie!")
}
else if(choice1 === "scissors") {

if(choice2 === "rock") {
return"rock wins";
}
else {
return"paper wins";

}

}
else if(choice1 === "paper" {

    if(choice2 === "rock") {
        return"paper wins"

    }

    else {
        return"scissors wins"

}
}
}

I'm getting an "Unexpected Token { Syntax Error.


#2

Hi, one missing ) this line.

else if(choice1 === "paper" ) }


#3

Thank you very much! I knew it would be an easy fix. :yum: