Last active
October 21, 2020 14:56
-
-
Save camilomontoyau/9decdbcbb5464d674b0c3be0e580efa6 to your computer and use it in GitHub Desktop.
async order
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
const p = () => Promise.resolve(5); | |
const y = async () => { | |
const t = await p(); | |
console.log(t); | |
}; | |
y(); | |
console.log('hello'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment