This forum is now read-only. Please use our new forums at discuss.codecademy.com.

106 points
F538767442429743c5a7cf5ebc38d7a1?s=140&d=retro
Submitted by
Joshi316
over 3 years ago

Can someone please tell me what they see wrong with this ?!

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";
    }

}


0 votes

permalink

You are missing }; from the end of your code.

you have 5 "{" but only 4 "}"

203 points
B5d1676f01eaefd5e3b2da2082e7a02f?s=140&d=retro
Submitted by
CainsAngel
over 3 years ago