Skip to content

Post 28: The Most Common Promise Interview Questions #48

@honeycoder96

Description

@honeycoder96

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?)

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions