What's wrong?


#1

var userChoice = prompt("Do you choose rock,paper or scissors?");
var computerChoice = Math.random();
console.log(computerChoice);
if (computerChoice <= 0.33){
computerChoice = "rock";
}
else if(0.34 <= computerChoice <= 0.66){
computerChoice = "paper";
}
else if (computerChoice => 0.67) {
computerChoice = "scissors";
}
else{
console.log("Error");
}

SyntaxError: Unexpected token '>'


#2

You wanted to compare greater than or equal, but => is not used for that. Use >= instead.