3. Computer Choice: Part 1


#1

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

var userChoice=prompt("Do you choose rock, paper or scissors?");
var computerChoice = Math.random();
console.log(computerChoice);
if (computerChoice>0 && computerChoice<=0.3){
    computerChoice= "rock";}
    else if(computerChoice>0.3 && computerChoice<=0.6){
        computerChoice= "paper";
    }
    else{
        computerChoice= "scissors";
    }

#2

Hi this part of the lesson you don't need of the if, else if and else statement