3. Computer Choice: Part 1


#1


I'm getting this error:

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


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.66) {
    computerChoice = "paper";
} else {
    computerChoice = "scissors";
}


#2

HI on that Lesson you don't need of the if, else if and else statement..


#3

Oh my goodness thank you so much! I have been racking my brain as to why the "M"error kept coming up