---
title: "Discussion on \"PRoMises chaining\" | Hashnode"
description: "Discussion on \"PRoMises chaining\". const wait = function (second) {\n  return new Promise(function (resolve) {\n    setTimeout(resolve(\"WHo??\"), second * 1000);\n  });\n};\n\nwait(1)\n  .then((r) => {\n    console.log(\"I am a first call\");\n    console.log(r);\n    return wait(3);\n  })\n  .then(..."
url: "https://hashnode.com/posts/promises-chaining/67aec3754cbe73890136c153"
---

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

Discussion

# [PRoMises chaining](https://mohitv02.hashnode.dev/promises-chaining?utm_source=hashnode&utm_medium=feed)

const wait = function (second) { return new Promise(function (resolve) { setTimeout(resolve("WHo??"), second \* 1000); }); }; wait(1) .then((r) => { console.log("I am a first call"); console.log(r); return wait(3); }) .then(...

Feb 14, 2025 · 1 min read · mohitv02.hashnode.dev  
Read the article

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

## Written by

[Mohit Vishwakarma](https://hashnode.com/@mohitv02)

@mohitv02

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

developer loading...

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
