My code doesn't seem to work


#1


https://www.codecademy.com/courses/javascript-beginner-en-Bthev-mskY8/1/1?curriculum_id=506324b3a7dffd00020bf661#

SyntaxError: Illegal return statement

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

    }
};

#2

That's syntactically valid, perhaps you used some other code.