Posted By

ederfortunatO on 02/29/12


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

adambundy
bug5


Simple way to make a Timer in JS


 / Published in: JavaScript
 

dont use setInterval!!!

  1. (function loopFunction(){
  2.  
  3. doSomething();
  4.  
  5. setTimeout(loopFunction, 100);
  6. })();

Report this snippet  

You need to login to post a comment.