4. rock paper scissors please help!


#1


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

I've been staring at this for some time, where am i going wrong?

SyntaxError: Unexpected token '{'. Parse error.


var userChoice = prompt("Do you choose rock, paper or scissors?") 

var computerChoice = Math.random()

console.log(computerChoice) 

if (computerChoice <= 0.33) {
    computerChoice = "rock";
} else if(computerChoice >= 0.33  && computerChoice <= 0.6) { computerChoice = "paper";
} else (computerChoice >= 0.67 && computerChoice <= 1) {
    computerChoice = "scissors";
}


#2

if (computerChoice <0.34) {
computerChoice = "rock";
} else if(computerChoice<=0.67){


#3

You have a condition for else, you shouldn't as else doesn't take a condition, itit runs if the condition of if is not met, also your else if statement is not closed


#4

thankyou so much for the fast reply!


#5