Plz help


#1

var userChoice = prompt ("do you choose rock , paper , or scissors ?")
var computerChoice = Math.random()
console.log (computerChoice);

if (computerChoice<=0.33) {
computerChoice = ("rock")
}
if else (0.34>= computerChoice >=0.66) {
computerChoice =( "paper")
}
else {
computerChoice = ("scissors")
};

it says

SyntaxError: missing ( before condition . .i can't find the error


#2

in your if else statement you should the && operator like so:
computerChoice >= 0.34 && computerChoice <=0.66


#3

Also its else if not if else.


#4

i wrote it again same way just changed the "if else " to "else if"... and it worked