Rock paper scissors, I don't know what wrong


#1

var userChoice = prompt("What do you pick?");
var computerChoice = Math.random();

if (computerChoice < .33) {
computerChoice = "rock";
} else if (computerChoice <= .67){
computerChoice = "sissors";
} else {
computerChoice = "paper";
};
console.log(computerChoice);


#2

I don't see anything wrong here. Can you expand?


#3

"Oops, try again. Did you change a computerChoice between 0.67 and 1 to 'scissors'?" is the message i keep getting


#4

hey just a suggestion try to keep your programming codes spaced it makes it easier.


#5

...
if (computerChoice < 0.33){
...
else if (computerChoice <= 0.67){

[Code removed by moderator - please avoid posting full code answers as it allows others to cheat easier]

Mine works - try adding the 0.


#6

Seems to be ok. Maybe it's this odd order of rock, scissors, paper instead of rock, paper, scissors but from the syntax it should be correct.


#8

Oh, my god... Yep, i'm an awful speller... I left out the freakin c... I feel dumb