You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • If you want to reference different intervals at the same time, that can be pretty easy as well:

    var ia = setInterval(...);
    var ib = setInterval(...);
    var ic = setInterval(...);
    
    // some time later...
    clearInterval(ia);
    // and later..
    clearInterval(ib);
    // etc...
    

    I only suggest the closures because it looked like you wanted to start several copies of the same interval, which would stop themselves

About

Avatar for Gordon @Gordon started