5. Both Choices are the same


#1



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


Can't seem to get past this exercise am i doing something wrong? or is this a code academy bug?


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


#2

Not a bug, an exclamation mark ( ! ) is missing at the end of "The result is a tie".

In other words, it should be "The result is a tie!";


#3

thank you that fixed it


#4

what's wrong with my code? http://codepen.io/oxy/pen/Xdeydr