---
title: "Discussion on \"I Tried to Read Three Files at Once and My Code Became a Staircase\" | Hashnode"
description: "Discussion on \"I Tried to Read Three Files at Once and My Code Became a Staircase\". Learn why Node.js doesn't wait for your code and how to fix \"staircase\" callback hell using Promises, Promise.all, and async/await for cleaner logic."
url: "https://hashnode.com/posts/i-tried-to-read-three-files-at-once-and-my-code-became-a-staircase/69fa87ffa386d7f121ed7b59"
---

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

Discussion

# [I Tried to Read Three Files at Once and My Code Became a Staircase](https://blog.saumyagrawal.in/i-tried-to-read-three-files-at-once-and-my-code-became-a-staircase?utm_source=hashnode&utm_medium=feed)

Learn why Node.js doesn't wait for your code and how to fix "staircase" callback hell using Promises, Promise.all, and async/await for cleaner logic.

May 6 · 10 min read · blog.saumyagrawal.in  
Read the article

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

## Written by

[Saumya](https://hashnode.com/@saumyaetc)

@saumyaetc · Lucknow

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

Refactoring to Software Development

Trying to transition my career to explore new things, new tech

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
