Rock Paper Scissor Part 2


#1

I am getting an error message. Can somebody help?

var userChoice=prompt("Do you choose rock,paper or scissor?");
var computerChoice=Math.random();

if("computerChoice" 0<=0.33){
console.log("rock");
}

else if("computerChoice" 0.34<=0.66){
console.log("paper");
}

else("computerChocie" 0.67<=1){
console.log("scissors");
}


#2

It would probably be helpful to all trying to help you if you post the error message as well in your post.


#3

Here is the screen shot!


#4

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