4/9 Build Rock Paper Scissors


#1

var userChoice = prompt("Do you choose rock, paper, or scissors?");
console.log(userChoice);
console.log(computerChoice);
var computerChoice = Math.random(0,1);

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

I get in the log my choice, randomized number and false
What am i doing wrong?


#2

You will have to replace
console.log(computerChoice);
to AFTER the IF ELSE-IF ELSE statement.