W3
Teacher
Explore
Browse by field
Artificial Intelligence
Accounting & Finance
Information Technology
Show all fields
Interview Q&A
All Interview Questions
Beginner
Intermediate
Advanced
Practice
MCQs
Quizzes
Mock Interviews
About
Light
Dark
Auto
Sign in
Get Started
Search interview questions
Search
13 questions for “Promises & async/await”
Found in 1 field. Select a question to see its full answer.
Information Technology
13 questions in 2 technologies
#
Question
Technology
Topic
Level
1
How does
async/await
relate to
Promises
under the hood, and what does 'await' actually do to program execution?
Node.js › Async Patterns
Node.js
Async Patterns
Intermediate
2
How do you catch errors from a Promise chain versus
async/await
?
JavaScript › Error Handling
JavaScript
Error Handling
Intermediate
3
How does
async/await
map onto the microtask queue under the hood?
JavaScript › Event Loop & Concurrency
JavaScript
Event Loop & Concurrency
Advanced
4
How were generators historically used to write asynchronous code before
async/await
existed?
JavaScript › Iterators & Generators
JavaScript
Iterators & Generators
Advanced
5
How do you loop over an async iterable?
JavaScript › Async Iterators & Streams
JavaScript
Async Iterators & Streams
Beginner
6
What is the difference between the microtask queue and the macrotask (task) queue?
JavaScript › Event Loop & Concurrency
JavaScript
Event Loop & Concurrency
Intermediate
7
Why might Promise.all() be the wrong tool when consuming many async iterators?
JavaScript › Async Iterators & Streams
JavaScript
Async Iterators & Streams
Advanced
8
How do you write an effective test for asynchronous code?
JavaScript › Debugging, Testing & Tooling
JavaScript
Debugging, Testing & Tooling
Advanced
9
How do global error handlers like window.onerror and unhandledrejection work?
JavaScript › Error Handling
JavaScript
Error Handling
Advanced
10
How do you implement a retry-with-backoff pattern around a function that might throw?
JavaScript › Error Handling
JavaScript
Error Handling
Advanced
Show all 13 questions in Information Technology