---
title: "Discussion on \"Async Code in Node.js: Callbacks and Promises\" | Hashnode"
description: "Discussion on \"Async Code in Node.js: Callbacks and Promises\". If you have spent any time writing JavaScript or Node.js, you have probably stared at your screen wondering why your code ran in the wrong order. You wrote three lines, top to bottom, like a normal hu"
url: "https://hashnode.com/posts/async-code-in-node-js-callbacks-and-promises/69fe21cff239332df4f176fb"
---

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

Discussion

# [Async Code in Node.js: Callbacks and Promises](https://amirana.hashnode.dev/async-code-in-node-js-callbacks-and-promises?utm_source=hashnode&utm_medium=feed)

If you have spent any time writing JavaScript or Node.js, you have probably stared at your screen wondering why your code ran in the wrong order. You wrote three lines, top to bottom, like a normal hu

May 8 · 10 min read · amirana.hashnode.dev  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#async-code-in-node-js-callbacks-and-promises](https://hashnode.com/tag/async-code-in-node-js-callbacks-and-promises)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#chaiaurcode](https://hashnode.com/tag/chaiaurcode)

## Written by

[Ami Rana](https://hashnode.com/@amirana)

@amirana · India

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

Frontend Developer → Transitioning into Full-Stack | UX Design Background

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
