3 ms·
You can make the recursive solution work without any delay: function countdown(n) { if(n >= 0) { alert(n); setTimeout(function() {c
by abstractbill 16y ago
You can make the recursive solution work without any delay:
function countdown(n) {
if(n >= 0) {
alert(n);
setTimeout(function() {countdown(n-1);}, 1000);
}
}