" SyntaxError: Unexpected token {" What if choice1 is rock need help please!



Replace this line with your code. 

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

compare ("paper", "paper");


You're missing one more curly brace at the end for your else if.


You should close that function parameter with )

I hope this helps! :wink:


wooooowww Ugh that irritates me lol


Haha... Keep at it and you will only get better. :wink:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.