5. Doesn't seem to work?


#1

I keep getting this error.
Your compare function does not return 'The result is a tie!' when there is a tie.

When running this code.

/*var userChoice = prompt("Do you choose rock, paper or scissors?");
var computerChoice = Math.random();
if (computerChoice < 0.34) {
	computerChoice = "rock";
} else if(computerChoice <= 0.67) {
	computerChoice = "paper";
} else {
	computerChoice = "scissors";
} console.log("Computer: " + computerChoice);*/
var compare = function(choice1, choice2){
    if (choice1 === choice2) {
     return "This result is a tie!";   
        
    }
    
    
    
};

Can't seem to see what it is I'm doing wrong. Can anyone help me?


#2

The result vs This result?


#3

Thanks. I didn't even see that.


#4

I have the same problem what does it mean by The result vs this result?


#5

That the expected output needs to match your output so he uses "This" but the expected output was "The"


#6

thanks gotya ................