What's the mistake in my code?


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


Hi @venumadhavcode,

Compare what you are returning:

"The result is a tie"

to what is expected:

"The result is a tie!"


Thank you very Much...@gaurangtandon