I want to make simple clicking game, but I have a problem. Let's say I have this:
var clicks = 0;
function somefunction() {
clicks++;
}
<button onclick="somefunction()">BUTTON 1</button>
<button onclick="anothfunction()">BUTTON 2</button>
and here comes the problem. I want to count clicks on BUTTON 1, but after clicking on BUTTON 2. It will count one click as two clicks. Thank you in advance. ;-)