<script type="text/javascript"> (function(o){var n=0;function f(){++n;console.log(n);clearInterval(o[n]);}o[100]=setInterval(f,100);})(new Array(100)); </script>