SyntaxError: unexpected token else-what if choice1 is paper


#1

Any advice would be much appreciated.

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";
   }
}
};

#2

No semicolons after conditional statement. Also these parts should be inside of a compare function.