What is wrong in my code?


What is wrong in my code? I did the same way

var compare = function(choice1,choice2) {
if(choice1===choice2) {
return "O resultado é um empate!";
else if (choice1==="pedra") {
if (choice2 === "tesoura") {
return "pedra vence";
else {
return "papel vence";

I do not know where the mistake is when I get this message

HI its missing the closing } of the compare function add one } at the end


I dont' belive, always is a simple thing that Iforget, I'm too distracted thanks,