How is this wrong?


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


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


thank you, it worked.


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.