I know this might be pretty simple but I cannot see the tree from the wood atm. Please can you help? I have a variable whose initial value is 1 and I want to increment it by 1 every single time the user clicks on a button. I have this code:
let counter = 0;
dPadRight.addEventListener("click", function increment() {
counter++;
}
);
console.log(counter);