4/9 Problem with syntax


#1

I really can't find what's wrong with this code. Any help is appreciated.

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


#2

Hi, should put variable each comparison.

else if(  computerChoice >= 0.34  && computerChoice <= 0.66) {

#3

Ah, I see! Thanks a lot :smile: