I got this function that starts a timer on this format 00:00:00 whenever I click on a button. But I don\'t know how to do functions resume and pause. I\'ve found some snippe
Use window.clearInterval to cancel repeated action which was set up using setInterval().
setInterval()
clearInterval(delay);