title: How long do resolved Promises take to enter the task queue?
body: <p>I'm still trying to figure out the event loop and when exactly things tick/when the task queues are processed.</p>
  
  <pre><code>console.log('start');
  
  Promise.resolve().then(function() {
    console.log('promise');
  });
  
  console.log('end');
  </code></pre>
  
  <p>This outputs the following:</p>
  
  <pre><code>&gt; "start"
  &gt; "end"
  &gt; "promise"
  </code></pre>
  
  <p>Shouldn't the promise resolve right away and thus the call stack would be empty right after (before "end" is printed) and thus the callback would be processed as a task before "end" is printed?</p>
  
  <p>I'm clearly missing something here about either a) when resolved Promise callbacks are added to the task queue or b) when tasks are processed in the event loop.</p>