function is a value that represents the reason why the promise was rejected. If the return value of this function is not a Promise, it is used as the value for resolving <code>nextPromise</code>. If the returned value is a Promise, then value of <code>nextPromise</code> depends on the inner Promise&#39;s status. If this function throws, <code>nextPromise</code> is rejected with the error as its reason. If <code>onRejected</code> is <code>null</code>, it&#39;s ignored</td>
</tr>
<tr>
<td><strong>returns</str