Syntax error unexpected token {


#1


hey can someone help me? im getting an error message that reads Syntaxerror: unexpected token: {
...... i've scanned it a few times but i can't find it >~< please assist


var userChoice = prompt("Do you choose rock, paper or scissors?");
var computerChoice = Math.random();
if (computerChoice < 0.34) {
	computerChoice = "rock";
} else if(computerChoice <= 0.67) {
	computerChoice = "paper";
} else {
	computerChoice = "scissors";
};
console.log("Computer: " + computerChoice);
var computerChoice= choice2
var userChoice = choice1
var compare = function (choice1, choice2) {
    if (choice1 === choice2){
    return "The result is a tie!";
    } else if (choice1 === "paper"){
        if(choice2 === "rock"){
            console.log("paper wins");
        } else{
            console.log("scissors wins");
        }
    } else if (choice1 ==="rock"){
        if(choice2==="paper"{ 
            console.log("paper wins");
        }else { 
            console.log("scissors wins");
        }
    } else if (choice1 === "scissors"){
        if (choice2 === "rock"){
            console.log("rock wins");
        }else{
            console.log("scissors wins");
        }
    }
};


#2

this line:

if(choice2==="paper"{

do you you see it?


#3

ah! thank you. silly of me to overlook it :c


#4