SyntaxError: Unexpected token <


#1

Here's my code, I don't think I'm missing any semicolons and after 4 read overs I can't see where it could be going wrong. According to the error it's one of my conditions in the if/else if/else statements. Any help would be awesome, thanks!

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 (computerChoice > 0.33 && <= 0.66) {
    computerChoice = "paper";
} else {
    computerChoice = "scissors";
}

#2

here you compare a boolean operator to a number :smile:
Better use

... && computerChoice<= 0.66

instead. Also you could just use

 computerChoice<= 0.66

as the if already deals witht the range below 0.33