Wed Nov 01 2023 18:57:05 GMT+0000 (Coordinated Universal Time)
Saved by @abhikash01
function countdownTimer(minutes) { let seconds = minutes * 60; const countdown = setInterval(function() { seconds--; if (seconds < 0) { clearInterval(countdown); } else { console.log(seconds + " seconds left"); } }, 1000); }
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments