Says Syntax error.Expected ';'


#1

var userChoice = prompt("Do you choose rock,paper or scissors?");

var computerChoice = Math.random();
console.log(computerChoice);

if(computerChoice>=0.66){
computerChoice = "scissors";
}
else if(computerChoice>=0.33){
computerChoice = "paper";
}
else(computerChoice>=0){
computerChoice = "rock";
}


#2

An else statement does not take a condition.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.