Rock Paper Scissor 5, Is something wrong with my code, because it keeps saying Oops, try again. Your compare 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 tie!";
}
};


#2

Hi this line

return "The result is tie!";

its missing the a after is so it should be

return "The result is a tie!";