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:
Rock Paper Scissors DEBUG
and
var user; function choose(choice){ user = choice; } function test(click){ alert("You chose " + user); }