Stuck on "Rock, Paper, Scissors"


Hi there,

I am trying to complete the "rock, paper, scissors" section of this course and I am stuck with writing the below code:-

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

I get an error stating:-

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

I would be grateful if someone could help me...



your code..
return "The result is a tie";

'The result is a tie!'
missed Exclamation mark!


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