HomeQuizzesJavaScriptEvent Loop & Async
intermediateJS-INT-002

Event Loop & Async

10 questions  ·  JavaScript  ·  intermediate level

📝10 questions
No time limit
🔄Retake anytime
Instant feedback

Preview questions

1
Multiple Choice

What is the correct order of output?

console.log("start")
setTimeout(() => console.log("timeout"), 0)
Promise.resolve().then(() => console.log("promise"))
console.log("end")
A
B
C
D
🔒 Sign in to answer and see explanation
2
True / False

setTimeout(fn, 0) guarantees fn runs immediately after the current line.

A
B
🔒 Sign in to answer and see explanation
3
Multiple Choice

What does this output?

async function fetchData() {
  return 42
}
const result = fetchData()
console.log(result)
A
B
C
D
🔒 Sign in to answer and see explanation
+ 7 more questions
Sign in to attempt the full quiz
Free · No credit card required

Ready to attempt the full quiz?

Sign in to attempt all 10 questions, track your progress, and unlock AI-powered personalization.

← Browse all JavaScript quizzes