Computer Choice: Part 1


#1



Computer Choice: Part 2. Thanks for the help!

SyntaxError: missing before statement


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

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


#3

Hi your else statement shouldn't have a condition.


#4

Great, all solved - thank you!