Computer choice 2 4/9


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

#2

is there something wrong with it? Should this be a solution to a common error? Pls say some words about what you're posting here.