4. Computer Choice Part 2 SYNTAX ERROR MESSAGE {


#1

Here is my code:

userChoice = prompt("Do you choose rock, paper, or scissors?");
computerChoice = Math.random();
if ((computerChoice >= 0) && (computerChoice <= 0.33) {
    computerChoice = "rock";
} 
else if ((computerChoice >= 0.34) && (computerChoice <= 0.66)) {
    computerChoice = "paper";
} 
else {
    computerChoice = "scissor";
}

Returns error message "Syntax Error: Unexpected Token {

I can't find a wrongly used {... help me


#2

Seems like you forgot a closing ) in your if condition.