Both choices are the same!


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";


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".


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


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:


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