Last active
July 12, 2023 05:52
-
-
Save crashmax-dev/84fea55f0cbb699f4bdc989cb7160eb6 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
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