Error did you create a function compare?


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


your function should take 2 parameters: choice1 and choice2


Also add a ! to your output message.


thanks guys :smile: happy coding