advanced-js/countdown — pull request #35 by raybblin (2014-10-02 22:44:12+00:00)
Title: Update countdown.js

var count = 0;

function countdown(seconds) {
timerId = setInterval(function() {
if (count > -1) {
console.log(count);
count--;
} else {
clearInterval(timerId)}
}, 1000)