Syntax error


#1

https://www.codecademy.com/courses/javascript-beginner-en-Bthev-mskY8/0/4?curriculum_id=506324b3a7dffd00020bf661#

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");
}

#2

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).


#3

They don't actually affect anything.


#4

Welp, that was from what I knew.

¯_(ツ)_/¯


#5

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