Where does the ")" need to be?


#1

var userChoice = prompt("Do you chose rock, paper or scissors?");
var computerChoice = Math.random()
console.log(computerChoice)
if(computerChoice < 0.34) {
computerChoice = ("rock")
}else if(computerChoice >= 0.34 AND computerChoice <= 0.67) {
computerChoice = ("paper")
}else{
computerChoice = ("scissors")
}


#2

The interpreter is just confused about your AND. The javaScript way for AND is &&.


#3

problem in your 'else if' statement. once you have already set the condition "computerChoice < 0.34" in ' if ' statement then why again in ' else if '? it should only contain (computerChoice <= 0.67)

hope it will help yo.