How is this wrong?


#1

thats the code, I don't understand how this is wrong:

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


#2

Remove the space between 'choice' and '2' at the start.


#3

thank you, it worked.


#4

Glad to be of service. Could you please mark this topic as solved by clicking the tick box on my post so that others don't comment? Thanks.