Skip to content

Instantly share code, notes, and snippets.

@camilomontoyau
Last active October 21, 2020 14:56
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 camilomontoyau/9decdbcbb5464d674b0c3be0e580efa6 to your computer and use it in GitHub Desktop.
Save camilomontoyau/9decdbcbb5464d674b0c3be0e580efa6 to your computer and use it in GitHub Desktop.
async order
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