Function does not return 'The result is a tie!' when there is a tie


#1

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

and then it says "Oops, try again. Your compare function does not return 'The result is a tie!' when there is a tie."

thanks for the help.


#2

Hey @waveout, your code needs to be exact. You seem to be missing the exclamation mark in your return statement :slightly_smiling: