Last active
July 23, 2020 19:55
-
-
Save RinyuDrvo/b66ab4a31186e737b9f0ceeecb44433f to your computer and use it in GitHub Desktop.
then chain doc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| new Promise((resolve, reject) => { | |
| console.log('Initial') | |
| resolve() | |
| }) | |
| .then(() => { | |
| throw new Error('Something failed') | |
| console.log('Do this') | |
| }) | |
| .catch(() => { | |
| console.log('Do that') | |
| }) | |
| .then(() => { | |
| console.log('Do this whatever happend before') | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment