conut down timer in moment js code example
Example: countdown timer with moment js
var timer = moment.duration(5, "seconds").timer({loop: true}, function() {
// Callback
});
var timer = moment.duration(5, "seconds").timer({loop: true}, function() {
// Callback
});