Submitting error


"Both choices are the same!"

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

function compare(choice1, choice2) {
    if (choice1 === choice2) {
        return "This is a tie";


the string returned should be an exact match, The result is a tie! not: This is a tie, also, don't forget the exclamation mark at the end of the sentence


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