What is wrong with my code : Rock , Paper , Scissors



I get this error code anytime I run my piece of code I need help here
"Oops, try again. There was a problem with your syntax."

var userChoice = prompt("Do you choose rock, paper or scissors?");
var computerChoice = Math.random();
console.log("The value of Math.random in the computer choice variable is :");

if(computerChoice >=0&&<=0.33){
}else if(computerChoice >=0.34&&<=0.66){


(computerChoice >=0&&<=0.33) //wrong

you should write (computerChoice >=0 && computerChoice <=0.33)

but it's unnecessary

you can just write if( computerChoice <=0.33)

else if(computerChoice >=0.34&&<=0.66)  // do same


Aight thanks man @rcodeman


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.