Last active
December 26, 2018 08:43
-
-
Save steveast/7a606f928a8e985079b48bb3ff626613 to your computer and use it in GitHub Desktop.
Собеседование: промис 1
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) => { | |
throw new Error('err'); | |
}) | |
.then(() => { | |
console.log('then'); | |
}) | |
.catch(() => { | |
console.log('catch'); | |
}) | |
.catch(() => { | |
console.log('catch 2'); | |
}) | |
.then(() => { | |
console.log('then 2'); | |
}) | |
// catch | |
// then 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment