In a Promise, what's the difference between using catch and the 2nd argument of then? : <p>What exactly is the difference between these two statements?</p>

<pre><code>funcThatReturnsAPromise()
  .then(() =&gt; { /* success */ })
  .catch(() =&gt; { /* fail */ });


funcThatReturnsAPromise()
  .then(() =&gt; { /* success */ }, () =&gt; { /* fail */ });
</code></pre>
