<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
What if choice1 is scissors?
<In what way does your code behave incorrectly? Include ALL error messages.>
Make sure to call your compare function with userChoice and computerChoice as the arguments!
var compare=function(choice1,choice2)
{if (choice1===choice2)
return “The result is a tie!”
else if ( choice1===“rock”)
{ if( choice2===“scissors”)
{return “rock wins”;}
else
{return"paper wins";}}
else if (choice1===“paper”)
{if (choice2===“rock”)
{return “paper wins”;}
else {return “scissors wins”}}
else if (choice1===“scissors”)
{ if (choice2===“rock”)
{return “rock wins”;}
else {return “scissors wins”}}}
compare(“paper”,“scissors”)
<do not remove the three backticks above>