Submitting error


#1


"Both choices are the same!"
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.


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


#2

the string returned should be an exact match, The result is a tie! not: This is a tie, also, don't forget the exclamation mark at the end of the sentence


#3

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