JavaScript -- RPS -- Computer Choice: Part 2

bug-composer
javascript
sct

#1

https://www.codecademy.com/en/courses/javascript-beginner-en-Bthev-mskY8/0/4?curriculum_id=506324b3a7dffd00020bf661

This code is able to pass:

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

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

Found here: