Skip to content

Instantly share code, notes, and snippets.

@listenrightmeow
Forked from dawnerd/Super short countdown.js
Last active January 6, 2016 02:35
Show Gist options
  • Save listenrightmeow/4759005 to your computer and use it in GitHub Desktop.
Save listenrightmeow/4759005 to your computer and use it in GitHub Desktop.
x = setInterval(function(){
--w >= 0 ? console.log([w / 86400, (w / 3600) % 24, (w / 60) % 60, w % 60].map(function(n){
return n < 10 ? '0' + ~~n : ~~n
}).join(':')) : clearInterval(x);
}, [1e3, w = 10][0]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment