What is wrong with my code?


var compare = function(choice1 , choice2){
if(choice1 === choice2) {
return "The result is a tie";

else if(choice1 === "rock") {

if(choice2 === "scissors"){
 return "rock wins";
        return "paper wins";



Does your code say "unexpected end of input"? Then I suggest putting two brackets at the end. :smiley:

If it says "unexpected token '}'", then take away a bracket at the bottom. Good? :smiley: