4. help please


#1

Hi,

what is wrong with this code please help. shows syntax error

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

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

#2

You have if else its supposed to be else if


#3

thanks a lot:slight_smile: