Created
April 15, 2019 22:09
-
-
Save lwillmeth/1cfed97dd284db3e8aa654115a75b11e 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
console.log('A'); | |
const FetchKeys = new Promise((resolve, reject) => { | |
setTimeout(function () { | |
resolve('Hello world!'); | |
}, 1000); | |
}); | |
Promise.all([FetchKeys]) | |
.then(res => { | |
console.log('C: ', res); | |
}); | |
FetchKeys | |
.then(res => { | |
console.log('D:', res); | |
}); | |
console.log('E'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment