Step 4 getting Did You Create a Function Called Compare?


#1

What am I doing wrong?

/*var userChoice = prompt("Do you choose rock, paper or scissors?");
var compare = function(choice1, choice2){
if(choice1 === choice2){
return "The result is a tie!";
}

Replace this line with your code.


#2

Please copy and paste your code, and post a link to the exercise.


#3

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