renames
This commit is contained in:
parent
787d58a83f
commit
455d300d8d
280 changed files with 2 additions and 2 deletions
9
6-async/02-promise-basics/02-delay-promise/solution.md
Normal file
9
6-async/02-promise-basics/02-delay-promise/solution.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
```js run
|
||||
function delay(ms) {
|
||||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
}
|
||||
|
||||
delay(3000).then(() => alert('runs after 3 seconds'));
|
||||
```
|
||||
|
||||
Please note that in this task `resolve` is called without arguments. We don't return any value from `delay`, just ensure the delay.
|
Loading…
Add table
Add a link
Reference in a new issue