You are reading a single comment by @d3nd3-o0 and its replies. Click here to read the full conversation.
  • Some more evidence of what i'm talking about.. without console.log..

    var ypos = 5;
    setTimeout( function(){
      ypos = ypos + 20;
      g.drawString("timeout", 5, ypos, 0);
    },0);
    
    var x =0;
    while ( x < 100000 ) {
      x++;
    }
    
    ypos = ypos + 20;
    g.drawString("final", 5, ypos, 0);
    

    timeout should be printed below final because ypos would be larger if the setTimeout callback ran 'after' the code was parsed and in idle state..
    however its not the case and final is printed below (lower on screen == higher ypos value)..
    So i take back my last response about it being something related to console..

About

Avatar for d3nd3-o0 @d3nd3-o0 started