Build "Rock, paper, scissors" 6/9


can someone help me see what i'm doing wrong?

var compare = function (choice1, choice2)

    if (choice1=choice2)
    { return "The result is a tie!";}
else if (choice1=== "rock")
{ if (choice2=== "scissors")
{return "rock wins";}
{return "paper wins;


Opening bracket on function missing


First off, choice1=choice2 should be either choice1 == choice2 or choice1 === choice2.
Whichever one works.

Second, add a closing quote to

return "paper wins.