I've seen several people getting the syntax error, and I am too


#1


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


SyntaxError: Unexpected token {

I have researched this section's issues and have found good answers I think.
It does mention:
In the respective code blocks, change the value of computerChoice based on the rules stated above. Remember, you do NOT have to use var when changing the value of a variable that already exists.

I feel as though that is what I'm missing. (???)


var userChoice = prompt( "Do you choose rock, paper or scissors?")
var computerChoice = Math.random()
console.log(computerChoice);
If (computerChoice < 0.34){
   computerChoice="rock"
}
else if (computerChoice > 0.66){
   computerChoice="scissors"
}
else 
{
    computerChoice="paper"
}
    console.log("Computer" + computerChoice)


#2

I should be lowercase so i
and here:

missing a semi colon at the end ;


#3

Thanks so much. Always so obvious when someone else looks.
:slight_smile:


#4