Coding Global Background
Coding Global

Why is not this working?

Archived 8 months ago
23 messages
3 members
9 months ago
Open in Discord
P
</Jacunso>
Verified

```div // Counter program const decrease = document.getElementById("decreasebtn"); const reset = document.getElementById("resetbtn"); const increase = document.getElementById("increasebtn"); const countlbl = document.getElementById("myH13"); let count; countlbl = Number(countlbl); decrease.onclick = function(){ count--; countlbl.textContent } increase.onclick = function(){ count++; countlbl.textContent = count } ```

Replies (23)