What is wrong with my code here?


#1


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

It keeps saying that im not getting the correct return from my function.

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


#2

Try adding an exclamation mark after the word tie, and/or try closing the second to last curly brace with a semicolon


#3

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