Rock, Paper, Scissors "Unexpected end of output" HELP


#1

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

you missed a } at the end to close the function.