Your compare function does not return 'The result is a tie!' when there is a tie


#1



https://www.codecademy.com/courses/javascript-beginner-en-Bthev-mskY8/1/1?curriculum_id=506324b3a7dffd00020bf661#


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


var compare = function(userChoice, computerChoice)
{
if(userChoice===computerChoice);
{
    return "the result is a tie!";
}
};


#2

remove the semicolon here and make sure the string is exactly the same


#3

It was the string... I didn't capitalize the "T" in the word the...

Thank you


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.