I think there is a glitch


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



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


return "The result is a tie";


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



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


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