Skip to content

Commit

Permalink
Fix setTimeout promise implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
lakbychance authored Jun 8, 2021
1 parent 0a87512 commit 612548f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion challenges/async-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Once the promise is resolved or rejected, status will not change
```js
function setTimeoutPromise(delay) {
function resolver(resolve) {
setTimeout(resolve(), delay);
setTimeout(resolve, delay);
}
return new Promise(resolver);
}
Expand Down

0 comments on commit 612548f

Please sign in to comment.