Syntax error


Oops, try again. There was a problem with your syntax.
SyntaxError: Unexpected token '{'. Parse error.

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


Parentheses should not be there.

This should be less than 0.34, not less and equal.

No directions should be placed on "else" (remove the whole parenthesis).


They don't actually affect anything.


Welp, that was from what I knew.



You're correct about the other two problems, though.