What is wrong with this?!


#1


5. Both choices are the same!


I don't understand what is wrong with this code! It says your compare function does not return "The result is a tie" when there is a tie. I don't understand why it is saying this!


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


#2

you have a space after your exclamation mark

The string returned should be an exact match, copy paste it from the instructions


#3

Thanks, I'll try that!


#4

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