const decreasebtn = document.getElementById("dec"); const resetbtn = document.getElementById("res") const increasebtn = document.getElementById("inc") const label = document.getElementById("label") let count=0; increasebtn.onclick = function (){ count++; label.textContent=count; } decreasebtn.onclick = function (){ count--; label.textContent=count; } resetbtn.onclick = function (){ count=0; label.textContent=count; }