4. Computer Choice: Part 2 SyntaxError: Unexpected token else


#1

hello there,

I really thought I have the right code, but I get a syntax error and can't continue.

What am i doing wrong?

EDIT: oke off course the moment you post something you figure it out: the ; don't need to be included between if else statements... how do I archive / delete this topic?

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

if (computerChoice <= 0.33){
  computerChoice = "rock"; 
}; 

else if (computerChoice >= 0.34 && computerChoice <= 0.66){
   computerChoice =  "paper"; 
}; 

else {
   computerChoice =  "scissors"; 
};

#2

You shouldn't have semi-colons after the closing curly brackets of if, else if and else