title: Javascript promise - resolve (or) reject happening implicitly
body: <p>From chrome console, i am using native JS promises and it is getting resolved automatically,</p>
  
  <pre><code>var p = new Promise(
    function(resolve, reject){
      resolve(200)
  })
  </code></pre>
  
  <p>returns</p>
  
  <pre><code>undefined
  
  p.then(function(response){
    console.log(response)
  })
  </code></pre>
  
  <p>returns</p>
  
  <pre><code>200
  </code></pre>
  
  <p>I think, Promise.then is meant for registering resolve (or) reject callbacks. But, why is it triggering resolve callback function itself in this case.</p>