1 2 3 4 5
function next (i) { if (i <= 0) return; setTimeout(function () { next(i-1); }, 1); } next(700);