Both choices are the same!


#1


Both choices are the same!

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

Hey. There doesn't appear to be anything wrong with your code per se.

But try returning exactly what they asked you to. i.e - include an exclamation mark after "tie".


#3

Thanks! Such tiny 'mistakes' are destroying my mental health.


#4

You're welcome. Just remember that whenever they ask whether you returned "something" and if you think your code is right; it's probably just the instructions being super pedantic. :slight_smile:


#5

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