I typed the exact same thing as the hint but it's still wrong


#1


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


As the title suggests, I typed in the exact same code from the hint and it states,

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


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


#2

the string should be exact same.you missed a !


#3

Thanks! I just saw another question before realising it.


#4

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