Created
August 5, 2020 10:44
-
-
Save dnshko/39442c248c3ef7f8661f41d3315f633c to your computer and use it in GitHub Desktop.
Promise
This file contains 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
// Third promise relies on the result of the second promise | |
const capitalizeIds = (id) => { | |
return new Promise((resolve, reject) => { | |
return setTimeout(() => resolve(id.toUpperCase()), 200) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment