I need help!


#1

i dont know what i am doing wrong, can someone please help?
var userChoice = prompt("Do you choose rock, paper or scissors?");

var computerChoice = Math.random();
console.log(computerChoice)
if (computerChoice<=0.33){
computerChoice = "rock";
} else if (comptuerChoice >= 0.34 && computerChoice <=0.66) {
computerChioce = "paper";
} else {computerChoice = "scissors";}


#2

else if (comptuerChoice >= 0.34

you misspelled computerChoice here


#3

Thank you so much!!! That really helps


#4

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