Computer Choice: Part 1


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
Computer Choice: Part 2. Thanks for the help!

<In what way does your code behave incorrectly? Include ALL error messages.>

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”;
}

<do not remove the three backticks above>

#3

Hi your else statement shouldn’t have a condition.


#4

Great, all solved - thank you!