Did you create a function called compare?


#1

After multiple attempts to debug the error I continue to get this error message:

Did you create a function called compare?

Clearly I created the function and I even tried to copy and paste the code from the hints section. It's still not working. Here is my code:

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


#2

Did you mean to write choice2?

Aside

We never capitalize variable names. This practice is reserved for naming classes (which comes up in the unit on objects).

Be sure that this matches exactly the text given in the instructions, including punctuation.

return "The result is a tie!";

#3

Thank you, I can't believe I missed that! It works now!!