[solved]Not sure what went wrong


#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

I did verbatim what it said to do in the instructions so I don't know why this wouldn't be working.


#3

Figured it out, the help example left out a bracket at the bottom.