What is wrong with my code? Both Choices are the Same 5/9


#1


What is wrong with this code? I keep getting this: SyntaxError: Unexpected token if




var compare = function (choice1, choice2)
if (choice1 === choice2) {
return "The result is a tie!"; 
     }
};


#2

your function is missing an opening bracket,


#3

Thank you !! I was stuck here for a while


#4

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