Computer choice: Part 2


#1


Computer chioce: part 2

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

Replace this line with your code.


#2

What is your question?


#3

your else if condition is wrong, you check if computerChoice is less or equal to .66, no need to check if is greater then .33, since the if condition does this for you

You should update the computerChoice with a string of rock, paper or scissors

else shouldn't have a condition at all, since it is everything else


#4

Got it!

thanks stetim


#5