5. Both are the same


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";


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


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


glad to be of help :grin: