title: What's the difference between returning value or Promise.resolve from then()
body: <p>What is the difference between:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>new Promise(function(res, rej) {
      res("aaa");
    })
    .then(function(result) {
      return "bbb"; // directly returning string
    })
    .then(function(result) {
      console.log(result);
    });</code></pre>
  </div>
  </div>
  </p>
  <p>and this:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>new Promise(function(res, rej) {
      res("aaa");
    })
    .then(function(result) {
      return Promise.resolve("bbb"); // returning a promise
    })
    .then(function(result) {
      console.log(result);
    });</code></pre>
  </div>
  </div>
  </p>
  <p>I'm asking as I'm getting different behaviour Using Angular and $http service with chaining .then(). A bit too much code hence first the example above.</p>