Send Help


#1

I've been stuck on this for hours. I can't see what's wrong with it.

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 got your compare function right @mushyroom05! Please paste the whole code


#3

There is a } missing to close your compare function.

Merry Christmas :christmas_tree: