---
title: "Discussion on \"Understanding error handling in Promise chains\" | Hashnode"
description: "Discussion on \"Understanding error handling in Promise chains\". Promise chains\nYou can create a chain of Promises by returning new Promises from a then handler. Here's a simple example that chains 3 promises together:\nPromise.resolve(1)\n    .then(id => {\n        console.log(`Success: ${id}`);\n        return Promi..."
url: "https://hashnode.com/posts/understanding-error-handling-in-promise-chains/64a839b89703c90830b42bbf"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Understanding error handling in Promise chains](https://joeattardi.dev/understanding-error-handling-in-promise-chains?utm_source=hashnode&utm_medium=feed)

Promise chains You can create a chain of Promises by returning new Promises from a then handler. Here's a simple example that chains 3 promises together: Promise.resolve(1) .then(id => { console.log(\`Success: ${id}\`); return Promi...

Jul 7, 2023 · 3 min read · joeattardi.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#promises](https://hashnode.com/tag/promises)
-   [#error-handling](https://hashnode.com/tag/error-handling)

## Written by

[Joe Attardi](https://hashnode.com/@joeattardi)

@joeattardi · Boston Area, MA, USA

  
[View profile](https://hashnode.com/@joeattardi)

Veteran Software Developer | Web & Front-End Expert | Author | Tech Writer | Blogger

Software developer since 2004. Web/front-end expert (HTML, CSS, JS). O'Reilly and Apress author. Freelance tech writer. Blogger. Bridging code and communication in tech.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
