---
title: "Discussion on \"JavaScript Promise Chain - The art of handling promises\" | Hashnode"
description: "Discussion on \"JavaScript Promise Chain - The art of handling promises\". Learn how to handle promises using the Promise Chain. This article helps you understand chaining with easy examples. Would you please read on?"
url: "https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa"
---

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

Discussion

# [JavaScript Promise Chain - The art of handling promises](https://blog.greenroots.info/javascript-promise-chain-the-art-of-handling-promises?utm_source=hashnode&utm_medium=feed)

Learn how to handle promises using the Promise Chain. This article helps you understand chaining with easy examples. Would you please read on?

Aug 6, 2021 · 13 min read · blog.greenroots.info  
Updated May 27, 2022  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#nodejs](https://hashnode.com/tag/nodejs)

## Written by

[Tapas Adhikary](https://hashnode.com/@atapas)

@atapas · Bangalore

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

Educator @tapaScript | Founder CreoWis & ReactPlay - Writer - YouTuber - Open Source

Co-Founder, @CreoWis | Teacher, @tapaScript | Founder, @ReactPlay | YouTuber | Writer | Human

## Responses 10

Markdown supported · ⌘↵ to post

[Tejas Khanolkar](https://hashnode.com/@commonman)

[Sep 16, 2023](https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa/comment/6505b908dbce26f1bafa083b)

these article so helpful for me..thank tapas adhikar👍🙌🙌🙌

[fishbite](https://hashnode.com/@fishbite)

[Dec 8, 2022](https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa/comment/639251aa0771b6e5cf4a8fdb)

Hey Tapas, I first read some of your work on **Synchronous vs Asynchronous JavaScript – Call Stack, Promises, and More synchronous-vs-asynchronous-in-javascript**, which was enlightening on the underlying workings of the JavaScript engine. Thanks so much for that, it was the first time that anyone had explained that.

I was enjoying this post up until the point where you wrote the `fetch()` function at which point I was rather disturbed and momentarily discombobulated! Personally, I think you should rename that function (function getFakeAPI() lol!) because we have the fairly recently introduced **FetchAPI**

Just my 2 penny's worth :-P

...but thanks again, great post.

fishbite

[Md Mafiz Uddin](https://hashnode.com/@pacehut)

[Aug 30, 2022](https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa/comment/630d9b7843d7308e3e329369)

This one is over the top like I came across your blog on Async Js at freeCodeCamp and since from there the concepts clearance I'm getting is something huge, Hats Off Sir.

[Tapas Adhikary](https://hashnode.com/@atapas)

[Aug 30, 2022](https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa/comment/630d9b7843d7308e3e329369#reply-630d9bf856df9e8e50254830)

Thanks a lot, [Md Mafiz Uddin](https://hashnode.com/@pacehut). Means a lot.

[Rishi Sadanandan](https://hashnode.com/@keshloco)

[May 26, 2022](https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa/comment/628fedeb8826d59c309dc79c)

Awesome article! I think that there should be a return user. email in promise chain rule #2.c in the first .then() after checking if "hr" is in permissions. This is for properly passing down the user email in the case that "hr" is NOT in the permissions, I believe!

Great article anyways! I love working through your examples - hopefully I can learn promises and async programming so that I can move on to finally learn reactjs!

[Tapas Adhikary](https://hashnode.com/@atapas)

[May 27, 2022](https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa/comment/628fedeb8826d59c309dc79c#reply-629049d68826d59c309dcc90)

Thanks [Rishi](https://hashnode.com/@keshloco), yeah in that example we can return user.email as usual. I was a bit lazy I think to write that, left with a comment. Now added.

Thanks for reading and commenting. If you are learning React, please check out ReactPlay: [blog.greenroots.info/introducing-reactplay-learn-…](https://blog.greenroots.info/introducing-reactplay-learn-create-share-reactjs-projects)

[Rishi Sadanandan](https://hashnode.com/@keshloco)

[May 27, 2022](https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa/comment/628fedeb8826d59c309dc79c#reply-62904a469a7f929c55a4375a)

[Tapas Adhikary](https://hashnode.com/@atapas)

Awesome! I will check it out!

[Jezzlee](https://hashnode.com/@Jezzlee)

[Aug 13, 2021](https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa/comment/611622ca90eeb80f1ac0d1f3)

Great article!

p.s. typos in `.ctach()`

[Tapas Adhikary](https://hashnode.com/@atapas)

[Aug 13, 2021](https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa/comment/611622ca90eeb80f1ac0d1f3#reply-611624d2894bad0f41a34cd1)

Thanks a lot [Jezzlee](https://hashnode.com/@Jezzlee), corrected.

[Yogesh Chavan](https://hashnode.com/@myogeshchavan97)

[Aug 8, 2021](https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa/comment/610fe5c4528eff11aea8b24a)

A well-written and nicely structured article about Promises. ❤️

[Tapas Adhikary](https://hashnode.com/@atapas)

[Aug 8, 2021](https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa/comment/610fe5c4528eff11aea8b24a#reply-610fe947b79d6a1136682e96)

Thank you [Yogesh Chavan](https://hashnode.com/@myogeshchavan97). glad you liked it.

[Neha Soni](https://hashnode.com/@nehasoni)

[Aug 6, 2021](https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa/comment/610d4895528eff11aea87f84)

Amazing article Tapas

I like how well you explained the concept 👍👏👏

[Tapas Adhikary](https://hashnode.com/@atapas)

[Aug 6, 2021](https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa/comment/610d4895528eff11aea87f84#reply-610d72ffb79d6a1136680419)

Thanks a lot, Neha 🙂

[Usman Sabuwala](https://hashnode.com/@usmanwrites)

[Aug 6, 2021](https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa/comment/610cf6e9b79d6a113667f1e9)

Very easy explanation! I still completely don't understand Promises but this makes everything glow!

[Tapas Adhikary](https://hashnode.com/@atapas)

[Aug 6, 2021](https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa/comment/610cf6e9b79d6a113667f1e9#reply-610d042ab79d6a113667f345)

[Usman Sabuwala](https://hashnode.com/@usmanwrites),

Thanks, brother. Let the glow be there always :)

[Ayodele Samuel Adebayo](https://hashnode.com/@unclebigbay)

[Aug 6, 2021](https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa/comment/610ce90cb79d6a113667f067)

Wow wow wow.

This is incredible, well done Mr. Tapas

I am definitely recommending this to my community 🙌🙌🙌

[Tapas Adhikary](https://hashnode.com/@atapas)

[Aug 6, 2021](https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa/comment/610ce90cb79d6a113667f067#reply-610ceb7eb79d6a113667f0b6)

[Ayodele Samuel Adebayo](https://hashnode.com/@unclebigbay), thanks a lot.

> I am definitely recommending this to my community 🙌🙌🙌

Wow, It would be a great help. Thank You!

[Ayodele Samuel Adebayo](https://hashnode.com/@unclebigbay)

[Aug 6, 2021](https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa/comment/610ce90cb79d6a113667f067#reply-610cf179b79d6a113667f132)

Always welcome sir 🤗

[Karan Choudhary](https://hashnode.com/@karanchoudhary)

[Aug 6, 2021](https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa/comment/610cdab3b79d6a113667ee5b)

It was a great article. Loved it [Tapas Adhikary](https://hashnode.com/@atapas)!

[Tapas Adhikary](https://hashnode.com/@atapas)

[Aug 6, 2021](https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa/comment/610cdab3b79d6a113667ee5b#reply-610cdea0b79d6a113667eee5)

Thanks [Karan Choudhary](https://hashnode.com/@karanchoudhary), Glad you liked it.

[Savio Martin](https://hashnode.com/@saviomartin)

[Aug 6, 2021](https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa/comment/610cc8b7528eff11aea86fcc)

This blog is soo good. Literally you're crushing it. Amazing blog, very well written. Keep up the amazing work. Thanks for your dedication and hardwork into this. Appreciate it [Tapas Adhikary](https://hashnode.com/@atapas)!

[Tapas Adhikary](https://hashnode.com/@atapas)

[Aug 6, 2021](https://hashnode.com/posts/javascript-promise-chain-the-art-of-handling-promises/610cc4d5b79d6a113667ebaa/comment/610cc8b7528eff11aea86fcc#reply-610ccecc528eff11aea87053)

Thanks for recognizing the hard work [Savio Martin](https://hashnode.com/@saviomartin). I'm happy to hear that. Hope it reaches many and they find it helpful too.
