"Syntax Error: Unexpected token else" Part 2


#1

//Heres my code so far

var userChoice = prompt("Do you choose rock, paper or scissors?")
console.log (computerChoice = Math.random());

If (computerChoice <= 0.33)
{
computerChoice = "rock";
}
else if ( computerChoice <= 0.66)
{
computerChoice = "paper";
}
else
{
computerChoice = "scissors";
}


#2

if is a key-sensitve keyword so it needs to be all lower case.


#3

Such an obvious mistake now that I see it lol. Thanks