Build "Rock, paper, scissors" 6/9


#1

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";}
else 
{return "paper wins;
}
}
}

#2

Opening bracket on function missing


#3

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

Second, add a closing quote to

return "paper wins.