5. Both are the same


#1


Build "Rock, Paper, Scissors"

My code looks like the example it gives but for some reason it isnt working. The error it keeps telling me is
Your compare function does not return 'The result is a tie!' when there is a tie. Can someone help


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


#2

make sure what is in the quotes exactly matches what they want in the quotes


#3

Thanks. That worked. All because I didnt have the ! mark.


#4

glad to be of help :grin:


#6