Created
July 30, 2021 17:02
-
-
Save alibalbars/b5a80e95b5cf75f158e3094471c778a3 to your computer and use it in GitHub Desktop.
Js Promise
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let promise = new Promise(function(resolve, reject){ | |
| resolve("done"); | |
| reject(new Error("…")); // ignored | |
| setTimeout(() => resolve("…")); // ignored | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment