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


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


your function is missing an opening bracket,


Thank you !! I was stuck here for a while


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