7.What if chice1 is paper. please help


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

else if(choice1==="rock"){
return"rock wins";}
else {
return"paper wins";}

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

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

return "scissors wins";}


sintax error


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.


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