I think there is a glitch


#1

This is exactly what the hint said the code should look like, yet it said:

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

Here is my code. I would be grateful for any help.

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


#2

change

console.log("The result is a tie");

to

return "The result is a tie";

#3

Thanks for the suggestion, but there is still an error message. :rage:


:skull:


#4

Did the error message change? I'm sorry for the late response, I forgot to hit "Reply"


#5

Than you but my mistake was I forgot the exclamation point. XD :tongue: