7.What if chice1 is paper. please help


#1

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

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

if(choice2 === "rock")
return "paper wins";}

else{
return "scissors wins";}

};

sintax error


#2

Make sure you have an equal amount of opening and closing braces. I see a few places where you have an if statement without an opening brace, but the body of it has a closing brace.


#3

Also, if you need, you can find more information in this site: http://www.gamespedition.com/pc-games/indie-games/indie-simulation-games/papers-please/papers-please-others/papers-please-tokens