Created
February 7, 2021 08:28
-
-
Save Mayankgupta688/797cb54fda86145714d485a54dd773fd to your computer and use it in GitHub Desktop.
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
var firstPromise = new Promise((resolve, reject) => { | |
setTimeout(() => { | |
resolve("This is Promise One...") | |
}, 3000) | |
}); | |
firstPromise.then((data) => { | |
console.log(`Promise Resolved with the Data: ${data}`) | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment