Why won't it work ? It says "SyntaxError: Unexpected token {"


#1

var choice1 = prompt("Do you choose rock, paper or scissors?");
var choic2 = Math.random();
if (choice2 < 0.34)
{
choice2 = "rock";
}
else if
{
if(computerChoice <= 0.67)
{
computerChoice = "paper";
}
else
{
computerChoice = "scissors";
}
}
console.log("Computer: " + computerChoice);

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

        if(choice2 === "scissors", "Scissors")
        {  
            return "rock wins";
        }
        else 
        {
            if (choice2 === "paper", "Paper")
            {
                return "paper wins";
            }
        } 


    }
    else if(choice1 === "paper","Paper")
    {
        if(choice2 === "rock", "Rock")
        {
            return "paper wins";
        }
        else if(choice2 === "scissors", "Scissors")
        {
            return "scissors wins";
        }
    }
    else if(choice1 === "scissors", "Scissors")
    {
        if(choice2 === "rock", "Rock");
        {
            return "rock won";
        }
        else if(choice2 === "paper", "Paper");
        {
            return "scissors won";
        }  
    }
}

}


#2

Near the start you have
else if
{
without any checks you need to add ( some sort of checks here )


#3

var choic2 = Math.random();

if(computerChoice <= 0.67)

change choic2 to computerChoice or vise versa