SHARE
TWEET

Untitled

a guest Nov 18th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         <h1 class="timer">Timer:<p id="timer">60</p></h1>
  2. var timer = document.getElementById("timer")
  3. var count = 60
  4. const t = setInterval(() => {
  5.     count--
  6.     if (count === 0) {
  7.         clearInterval(t)
  8.     }
  9.     timer.innerHTML = count
  10. },1000)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top