Skip to content

Instantly share code, notes, and snippets.

@stepanmas
Last active December 26, 2018 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stepanmas/7a606f928a8e985079b48bb3ff626613 to your computer and use it in GitHub Desktop.
Save stepanmas/7a606f928a8e985079b48bb3ff626613 to your computer and use it in GitHub Desktop.
Собеседование: промис 1
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