renames
This commit is contained in:
parent
787d58a83f
commit
455d300d8d
280 changed files with 2 additions and 2 deletions
15
6-async/02-promise-basics/01-re-resolve/task.md
Normal file
15
6-async/02-promise-basics/01-re-resolve/task.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
|
||||
# Re-resolve a promise?
|
||||
|
||||
|
||||
What's the output of the code below?
|
||||
|
||||
```js
|
||||
let promise = new Promise(function(resolve, reject) {
|
||||
resolve(1);
|
||||
|
||||
setTimeout(() => resolve(2), 1000);
|
||||
});
|
||||
|
||||
promise.then(alert);
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue