Where is the error code?



Oops, try again. Your compare function does not return 'The result is a tie!' when there is a tie.

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



Hi Just add the ! after tie here

return "The result is a tie"


I have the same problem, the code is right but doesn't work :confused:


HI you can post your code or create a new topic with your code.


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