---
title: "Discussion on \"Three Files, Three if (err) Checks: Callbacks vs Promises\" | Hashnode"
description: "Discussion on \"Three Files, Three if (err) Checks: Callbacks vs Promises\". Why async code exists in Node.js, error-first callbacks, nested callback problems, fs/promises, and when callbacks still fit"
url: "https://hashnode.com/posts/nodejs-async-callbacks-promises/6b05d0f444205168e9235e4e"
---

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

Discussion

# [Three Files, Three if (err) Checks: Callbacks vs Promises](https://jaydeepkanzariya.hashnode.dev/nodejs-async-callbacks-promises?utm_source=hashnode&utm_medium=feed)

Why async code exists in Node.js, error-first callbacks, nested callback problems, fs/promises, and when callbacks still fit

18h ago · 7 min read · jaydeepkanzariya.hashnode.dev  
Read the article

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

## Written by

[Jaydeep Kanzariya](https://hashnode.com/@jaydeepkanzariya)

@jaydeepkanzariya · India

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
