You are reading a single comment by @Cale and its replies. Click here to read the full conversation.
  • Shouldn't the following code output (from console.log()) onInit, foo, bar ?? Instead on onInit, foo ??
    It seems that clearInterval is killing the setTimeout? That's not normal is it?

    function bar(){
      console.log('bar');
    }
    
    function foo(){
      console.log('foo');
      setTimeout(bar, 500);
      clearInterval();
    }
    
    function onInit(){
      console.log('onInit');
      setInterval(foo, 500);
    }
    onInit();
    

    I'm on PICO:

    "VERSION": "1v89.11",
      "BUILD_DATE": "Nov 22 2016",
    
About

Avatar for Cale @Cale started