Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 13, 2025 04:45
Show Gist options
  • Save velotiotech/5e5a48b7a49a7fd379a17e72be13693f to your computer and use it in GitHub Desktop.
Save velotiotech/5e5a48b7a49a7fd379a17e72be13693f to your computer and use it in GitHub Desktop.
const promise1 = new Promise((resolve, reject) => {
resolve('printing content of promise1');
})
(async () => {
const res = await promise1;
console.log('logging result ->', res);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment