39;](callback)</code> to
make your code IE8 and Android 2.x compatible.</p>
</li>
</ul>
<h1 id="chaining-promises">Chaining promises</h1>
<p>Because calling the <code>then</code> method of a promise returns a new derived promise, it is easily
possible to create a chain of promises:</p>
<pre><code class="lang-js">promiseB = promiseA.then(function(result) {
  return result + 1;
});

// promiseB will be resolved immediately after promiseA is resolved and its value
// will be the result of promiseA incremented 