What is wrong? 7/9


#1

var compare=function(choice1,choice2) {

if (choice1===choice2) {
return "The result is a tie!";    
}

if (choice1==="rock") 
{
     if(choice2==="scissors") 
     {
        return "rock wins";
    }    
    else (choice2==="paper") 
    {
        return "paper wins";
    }
else (choice1==="paper")
{
    if(choice2==="scissors")
    {
        return "scissors wins"
    }
    else(choice2==="rock")
    {
        return "paper wins")
    }
}

#2

your missing a closing } at the end of this snippet.