Dont Know whats wrong, plz help


#1

Error : "Your compare function does not return 'The result is a tie!' when there is a tie'."

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


#2

You forgot about ! at end of the output.

var compare = function(choice1, choice2) {
    if (choice1 === choice2) {
        return "The result is a tie!"; // ! at the end of the string
    }
    //...
};