What's wrong with this?


#1

well... I coded this

var userChoice = prompt('Do you choose rock, paper or scissors?');
var computerChoice = Math.random();
if(0 < computerChoice < 0,33) {
console.log('rock');
} else if(0,34 < computerChoice < 0,66) {
console.log('paper');
} else if(0,67 < computerChoice < 1) {
console.log('scissors');
}

and as a result computer always show me 'rock'
help please, tell me where is mistake


#2

You're using commas ( , ) instead of periods ( . ). Change this.


#3

i changed (,) on (.) and now it's nothing to show on screen, even 'rock' :smiley:


#4

or it starts to show 'paper' only