I have very little experience with writing javascript and I need help desperately. I need to make so that when a button is clicked the score goes up by one similar to how the co
Your code already works. Here's a demo that demonstrates your code in action.
I have added a function to display the click count:
function updateClickCount() { document.getElementById("clickCount").innerHTML = clicks; }