Bug in Both Choices are the Same!


#1

In the hint where it tells you the solution, the solution looks like this:

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

But the code needs to be like this:

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

So if there is an answer in the hint you should make it right, not wrong


#2

A hint is not the same as the instructions. The hint even has the disclaimer "Your code should look something like this:". It doesn't say exactly like.

The instructions say:

`Inside the function, write an if statement. If choice1 === choice2, then return "The result is a tie!"


#3

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