STUCK on 7,8, & 9 IN ROCK,PAPER, ETC


#1


var compare = function(choice1, choice2) {
if(choice1 === choice2) {
return "The result is a tie!";
}
else if(choice2 === scissors2){
return"rock wins";
}
else{
return "paper wins";
}
}
else if (choice1==="paper") {
if (choice2==="rock") {
return"paper wins";
}
else {
return"scissors wins";
}
}
};
SOMEHOW I CAN'T PASS THESE EXC. WHAT IS WRONG, IS ME OR CODEACADEMY? ANYBODY? I KEEP GETTING UNEXPECTED TOKEN ELSE


Replace this line with your code.


#2

This part doesn't look right to me :slight_smile:


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.