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:
The var keyword used in the scope of a function will declare a new local variable.
Hence, in the global scope, user retains the value "none".
user
"none"