What is choice1 is paper


#1

Can someone please tell me what my mistake is here;

var compare= function (choice1, choice2){
} 
if(choice1 === "paper") {
} 
else if(choice2 === "rock") {
    if 
    return ("paper wins")} 
}
else {
    return ("scissors wins")
}
}
};

#2
var compare= function (choice1, choice2){
}

according to the brackets this is your compare function so the rest is not in it. Resulting in problems for undefined variables choice1 and choice2, use of return not inside a function aso. Also have a look at the hint of 6/9 on how to build the else if. As your if here lacks some important parts:

if 
return ("paper wins")}