Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Mayankgupta688
Created February 7, 2021 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mayankgupta688/797cb54fda86145714d485a54dd773fd to your computer and use it in GitHub Desktop.
Save Mayankgupta688/797cb54fda86145714d485a54dd773fd to your computer and use it in GitHub Desktop.
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