I\'m kind of new to JavaScript. I just started learning it, and I decided to make a \'Rock, Paper, Scissors, Lizard, Spock\' game. Here is the code:
var use
As several users have mentioned, your best bet for comparing is to convert the input to lowercase.
For your second point, I would wrap the input parsing in a loop, like this:
while(true){
var input = getInput();
if(isValid(input)){
// check for the winner
break;
}else{
// tell the user that their input is invalid
}
}