It show that "The result is tie!" but it's still wrong


#1



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

Oops try again! your compare function does not return 'The result is tie!' when there is a tie
but i don't see anything wrong! pls help!


var compare = function(choice1, choice2){
    if(choice1 === choice2){
        return "The result is tie";
    }
};
console.log(compare("paper", "paper"))


#2

I know it seems a bit trivial, but pretend you are programming manned space craft and have to get every detail perfect.

The result is tie!
The result is tie

#3

it still don't work
var compare = function(choice1, choice2){
if(choice1 === choice2){
return "The result is tie!";
}
};
console.log(compare("paper", "paper"))


#4

I missed one more difference. Have a look at the error message, is it saying that it is looking for:

The result is a tie!

#5

Oh it works thx i did not notice that lol :stuck_out_tongue: