Javascript > Rock Paper Scissors


#1

Here is the code. I have gone through some of the code for grammar errors. Hmm. Maybe a semi-colon? Don't think that is the case though. Any tips would be amazing.

Thank you in advance.


#2

nm had to make the last else statement "else if". Pardon me.


#3

This and the comma operator chains two statements to one so when you use for example:

computerChoice <= 0.34, 0.66

then this statement will have a value of 0.66 . And as any number except 0 is treated as true you'll always pick "rock". So maybe think if you even need the , .66 .