5. Both choices are the same!


Hello, can someone tell me what is wrong with this code?

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


the string returned should be an exact match, copy it from the instructions. A exclamation mark is already missing after tie


The function compare from the hint isn’t work. What is wrong?



Please make a new topic, this one is really old. Hijacking an existing topic to ask our question is not according to the guidelines

Not working is a vague term, please expand on this in your new topic.