Doesn't work


#1

Computer Choice: Part 1

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 (computerChoice >= 0.34) {
computerChoice = "paper";
}
else {
(computerChoice > 0.67)
computerChoice = "scissors";
}

Oops, try again. Did you set var computerChoice = Math.random() ? The capital 'M' in 'Math' is important!
what's wrong?


#2

Hi if you are at Computer Choice: Part 1 your code should be just this part

var userChoice = prompt ("Do you choose rock, paper or scissors?");

var computerChoice = Math.random();
console.log(computerChoice);

#3

thank you very much!