[SOLVED] Oops, try again. Did you change a computerChoice between 0.67 and 1 to 'scissors'?


#1


The site wont accept my approach with the error message in the title.
What am i doing wrong?

var userChoice = prompt("Do you choose rock, paper or scissor?");
var computerChoice = Math.random();
console.log(computerChoice);
if (computerChoice <= 0.33) {
    computerChoice = "rock";
}
else if (computerChoice <= 0.66) {
    computerChoice = "paper";
}
else {
    computerChoice = "scissor";
}


#2

What happens if you change this to 0.67?


#3

[expletive] i already found the problem i wrote "scissor" instead of "scissors" :dizzy_face:


#4

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