Computer Choice Part 2 ! Solved


#1

The right code !


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.66) {
console.log("paper");
}
else {
console.log("scissors");
}


#2

HI Sorry but your code is wrong. for this lesson.


#3

i used this and it's was oky ! Check your self -_-


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.