Error did you create a function compare?


#1

this is my code and is below the comment
this is for 5.Both choices are the same
var compare = function(compare){
if (choice1 === choice2){
return "The result is a tie";
}
}
Oops, try again. Did you create a function called compare?
can someone help


#2

your function should take 2 parameters: choice1 and choice2


#3

Also add a ! to your output message.


#4

thanks guys :smile: happy coding