We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
console.log("Hello World!")
function sleep(time) { return new Promise(resolve =>{ setTimeout(resolve, time) }) }
async function run() { console.log("Hello World!2") await sleep(1000) console.log("Hello World!3") }
run()
results Hello World! Hello World!1
the third console.log cannot run! help me
The text was updated successfully, but these errors were encountered:
run
await
run().then(() => process.exit());
Sorry, something went wrong.
No branches or pull requests
console.log("Hello World!")
function sleep(time) {
return new Promise(resolve =>{
setTimeout(resolve, time)
})
}
async function run() {
console.log("Hello World!2")
await sleep(1000)
console.log("Hello World!3")
}
run()
results
Hello World!
Hello World!1
the third console.log cannot run!
help me
The text was updated successfully, but these errors were encountered: