I\'m learning javascript and I decided to create simple Rock, Paper, Scissors game. I want to make it controllable by buttons. So I made this in html:
One problem:
var user = "none"; function user(choice){ var user = choice; }
One variable of user is hiding the other variable of user.
And having a function and variable with the same name is a BAD idea.