---
title: "Discussion on \"Promise waterfall\" | Hashnode"
description: "Discussion on \"Promise waterfall\". JavaScript promise is very useful, but if you have unpredictable tasks that depend on the previous task or can't run parallel, this syntax can be helpful. \nWaterfall syntax\nStart by prepare a promise function called run\nconst run = () => {\n  return n..."
url: "https://hashnode.com/posts/promise-waterfall/5fcba1322e4db7780e483503"
---

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

Discussion

# [Promise waterfall](https://ninolin.hashnode.dev/promise-waterfall?utm_source=hashnode&utm_medium=feed)

JavaScript promise is very useful, but if you have unpredictable tasks that depend on the previous task or can't run parallel, this syntax can be helpful. Waterfall syntax Start by prepare a promise function called run const run = () => { return n...

Dec 5, 2020 · 1 min read · ninolin.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#promise](https://hashnode.com/tag/promise)

## Written by

[Nino](https://hashnode.com/@NinoLin)

@NinoLin

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

I'm bald and stronger

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
