Created
November 28, 2018 12:57
-
-
Save Yago/0f9495dee97ae965136ca30e5d1e7b14 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const delay = (time) => new Promise(resolve => setTimeout(resolve, time)); | |
const thanks = async () => { | |
console.log('π'); | |
await delay(500); | |
console.log('ποΈ'); | |
await delay(500); | |
console.log('π€'); | |
}; | |
thanks(); // π |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment