What is wrong with my code?


#1



var userChoice=prompt("Do you choose rock, paper or scissors?")
var computerChoice=Math.random()
if (0<computerChoice<0.33){
    computerChoice="rock";
}if else (0.34<computerChoice<0.66){
    comptuerChoice="paper";
}else{
    computerChoice="sxissors";
}


#2

Hi here

if else (0.34<computerChoice<0.66)

you wrote if else instead of else if
then here

else{
    computerChoice="sxissors";
}

you wrote sxissors instead of scissors


#3

@wizmarco is right, and also:

You misspelled computerChoice.