Skip to content

Instantly share code, notes, and snippets.

@crashmax-dev
Last active July 12, 2023 05:52
Show Gist options
  • Save crashmax-dev/84fea55f0cbb699f4bdc989cb7160eb6 to your computer and use it in GitHub Desktop.
Save crashmax-dev/84fea55f0cbb699f4bdc989cb7160eb6 to your computer and use it in GitHub Desktop.
function run() {
return new Promise((resolve) => {
setTimeout(() => resolve('Hello'), 500)
})
}
// что будет выведено?
const data = await run().then((data) => console.log('then', data))
console.log('await', data)
console.log('here')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment