Which }


#1


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


why is this not working
SyntaxError: Unexpected token }


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

```

```

type or paste code here

```

```

```


#2

sorry for the backticks.


#3

looks like you got an extra one after paper:
} else if (computerChoice < 0.67) {
computerChoice = "paper";
} else {
computerChoice = "scissor";
}


#4

Thanks :slight_smile:


#5

No problem! Glad to be of some help :smiley:


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.