Epic: #14
Part: VIII — Interview Corner
Series order: 28 of 30
Description
The questions that appear repeatedly across JavaScript interviews — answered properly, not with surface-level answers but with the understanding to explain why.
Key topics
- What are the three Promise states? (And what does "settled" mean?)
- What does
.then() return?
- What is the difference between
Promise.all and Promise.allSettled?
- What is the difference between
Promise.race and Promise.any?
- Why does
await in forEach not work?
- What happens if you don't
return inside a .then()?
- What is an unhandled promise rejection?
- What is the microtask queue and how does it relate to Promises?
- What is the difference between
async/await and Promises?
- Can you cancel a Promise? (And the follow-up: what about
AbortController?)
Epic: #14
Part: VIII — Interview Corner
Series order: 28 of 30
Description
The questions that appear repeatedly across JavaScript interviews — answered properly, not with surface-level answers but with the understanding to explain why.
Key topics
.then()return?Promise.allandPromise.allSettled?Promise.raceandPromise.any?awaitinforEachnot work?returninside a.then()?async/awaitand Promises?AbortController?)