Rock Paper Scissors


#1

Hello,

everytime i try to run my code i get a Syntax error.

It says it misses an ';'

I Keep searching but can't find it.

Please help me find my mistake.

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

var computerChoice = Math.random();

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

console.log(computerChoice);


#2

else doesn't have a condition (think about it)


#3

THANK YOU! That was exactly the problem!