Syntax error #4


#1



I cant find my error


`

Replace this line with your code.
var userChoice = prompt ("Do you choose rock, paper or scissors?")
var computerChoice = Math.random()
console.log (computerChoice);
if (computerChoice between 0 and .33) {
console.log(computerChoice="rock");
} else (computerChoice between .34 and .66) {
console.log(computerChoice= "paper");
} else (computerChoice between .67 and 1) {
console.log(computerChoice="scissors");
}


#2

@mrperato,

Afaik between and and are not valid JS operators. Can you think of a different way to phrase your expressions, perhaps a way we have used in previous lessons?

Also, else does not accept any conditions (see). If you want to test something between if and else you must use else if.

frisby