Snippet of code to run code every second. Doesn’t trigger the next iteration until the first has finished.
(function() {
// Do something every second here
setTimeout(arguments.callee, 1000); // 1000 is the time in milliseconds
})();
Snippet of code to run code every second. Doesn’t trigger the next iteration until the first has finished. (function() { // Do something every second here setTimeout(arguments.callee, 1000); // 1000 is the time in milliseconds })();
Snippet of code to run code every second. Doesn’t trigger the next iteration until the first has finished.
(function() {
// Do something every second here
setTimeout(arguments.callee, 1000); // 1000 is the time in milliseconds
})();
Subscribe to get the latest posts sent to your email.
Leave a comment