3. Computer Choice: Part 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();
if (computerChoice>0 && computerChoice<=0.3){
    computerChoice= "rock";}
    else if(computerChoice>0.3 && computerChoice<=0.6){
        computerChoice= "paper";
        computerChoice= "scissors";


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