Step 4 getting Did You Create a Function Called Compare?


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.


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


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