renames
This commit is contained in:
parent
787d58a83f
commit
455d300d8d
280 changed files with 2 additions and 2 deletions
11
6-async/03-promise-chaining/02-error-async/task.md
Normal file
11
6-async/03-promise-chaining/02-error-async/task.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Error in setTimeout
|
||||
|
||||
How do you think, does the `.catch` trigger? Explain your answer?
|
||||
|
||||
```js
|
||||
new Promise(function(resolve, reject) {
|
||||
setTimeout(() => {
|
||||
throw new Error("Whoops!");
|
||||
}, 1000);
|
||||
}).catch(alert);
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue