What is wrong with this?!


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


you have a space after your exclamation mark

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


Thanks, I'll try that!


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