4/9 SyntaxError: Unexpected token else


#1

Why doesn't this work?

var userChoice = prompt("Do you choose rock, paper or scissors?")
var computerChoice = Math.random ();
if (computerChoice<=.33) {
    computerChoice="rock";
} 
else if (computerChoice<=.66) {
    computerChoice="paper";
else { 
    computerChoice = "scissors";
};
console.log(computerChoice)

#2

never mind figured it out


#3

What was wrong?
var userChoice = prompt("Do you choose rock, paper or scissors?")
var computerChoice = Math.random ();
if (computerChoice<=.33) {
computerChoice="rock";
}
else if (computerChoice<=.66) {
computerChoice="paper";
else {
computerChoice = "scissors";
};
console.log(computerChoice)