Tue May 21 2024 05:31:56 GMT+0000 (Coordinated Universal Time)
Saved by @ishwarpatel22
let count = 0 function increaseCount(){ count++ counterValue.innerText = count } function decreaseCount(){ if(count > 0){ count-- } counterValue.innerText = count } function resetCounter(){ count = 0 counterValue.innerText = count }
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments