Last active
February 7, 2021 08:37
-
-
Save Mayankgupta688/35aca3941f20a326e13832032ecba4d2 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("Data for Promise One") | |
}, 3500) | |
}); | |
var secondPromise = new Promise((resolve, reject) => { | |
setTimeout(() => { | |
resolve("Data for Promise Two") | |
}, 800) | |
}); | |
var thirdPromise = new Promise((resolve, reject) => { | |
setTimeout(() => { | |
resolve("Data for Promise Three") | |
}, 300) | |
}); | |
var forthPromise = new Promise((resolve, reject) => { | |
setTimeout(() => { | |
resolve("Data for Promise Four") | |
}, 1000) | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment