Premium

Add Two Promises

By FrontendAtlas Editorial · Updated Jan 30, 2026

Challenge summary

Resolve two asynchronous numeric inputs and combine their values while preserving rejection behavior.

What you'll practice

  • Wait for both asynchronous values before producing a result.
  • Return a promise that resolves to the numeric sum.
  • Propagate a rejection from either input without masking its reason.

What Premium unlocks

Premium unlocks the runnable workspace, behavioral checks, implementation walkthrough, and edge-case discussion.

Free related practice

Upgrade to FrontendAtlas Premium to unlock this challenge. Already upgraded? Sign in to continue.