Computer Choice Part 2


#1

Help I don't understand what's what anymore.


#2

Comparison operators 'greater than or equal to' and 'less than or equal to' always start with > or <. You wrote =<.

Moreover,you should use && for this exercise.

&& // AND
|| //OR

Math.random(), in this case, will always return a number equal or greater than 0, therefore, it is always true as one of the 2 conditions is true.
I also recommend you simply use this conditions.
if (computerChoice <= 0.33) { ... }
else if (computerChoice >= 0.66) { ... }
else { ... } //This line is executed if it is not lower than 0.33 nor greater than 0.66.