Syntax error


else if(choice1 === "rock") {

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



The last closing bracket " } ". Has a semi-colon " ; " at the end. Take out that semi-colon and you'll be good to go. If you have any other code it would be good to post that as well in case there's more errors.


I have taken the last semi-colon out of the last closing bracket but am still getting syntax error.