Oops, try again. Your compare function does not return 'The result is a tie!' when there is a tie


#1

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

#2

You have to add exclamation mark:

return("The result is a tie!");

#3

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