What's the mistake in my code?


#1

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

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


#2

Hi @venumadhavcode,

Compare what you are returning:

"The result is a tie"

to what is expected:

"The result is a tie!"

#3

Thank you very Much...@gaurangtandon