---
title: "#promises articles | Hashnode"
description: "Explore 869 articles tagged #promises on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/promises"
---

Tag

# #promises

869 posts · 11 followers

[ZyVOP](https://hashnode.com/@zyvop) · [2d ago](https://hashnode.com/posts/how-async-await-really-works-from-syntax-sugar-to-state-machines-zclcn/6af93990dd79e5910bf7aee0)

### [How async/await Really Works: From Syntax Sugar to State Machines](https://blog.zyvop.com/how-async-await-really-works-from-syntax-sugar-to-state-machines-zclcn?utm_source=hashnode&utm_medium=feed)

Explore how JavaScript transforms async/await into resumable state machines using Promises, microtasks, and the event loop.

14 min read · [blog.zyvop.com](https://blog.zyvop.com/how-async-await-really-works-from-syntax-sugar-to-state-machines-zclcn?utm_source=hashnode&utm_medium=feed)

[Linh Fish Dev](https://hashnode.com/@linhfishdev) · [Nov 8](https://hashnode.com/posts/javascript-run-multiple-promises-at-once-with-promise-allsettled-one-failure-won-t-ruin-the-batch/6af0923fa47cab96f277319b)

### [JavaScript: Run Multiple Promises at Once with Promise.allSettled — One Failure Won't Ruin the Batch](https://linhfishdev.hashnode.dev/javascript-run-multiple-promises-at-once-with-promise-allsettled-one-failure-won-t-ruin-the-batch?utm_source=hashnode&utm_medium=feed)

When you need to call several independent APIs at once — fetching user info, the post list, and statistics for a dashboard page, for example — Promise.allSettled() is the right choice. It waits for ev

4 min read · [linhfishdev.hashnode.dev](https://linhfishdev.hashnode.dev/javascript-run-multiple-promises-at-once-with-promise-allsettled-one-failure-won-t-ruin-the-batch?utm_source=hashnode&utm_medium=feed)

[Om Shirbhate](https://hashnode.com/@omshirbhate) · [Oct 3](https://hashnode.com/posts/javascript-promises-from-basic-to-advance/6ac123fec4ca0f2ebe5a295b)

### [JavaScript Promises: From Basic to Advance](https://dev-ops-blogs.hashnode.dev/javascript-promises-from-basic-to-advance?utm_source=hashnode&utm_medium=feed)

Introduction JavaScript is a single-threaded language, which means JavaScript code is executed on one main thread. But that does not mean JavaScript has to wait for every operation to finish. When an

20 min read · [dev-ops-blogs.hashnode.dev](https://dev-ops-blogs.hashnode.dev/javascript-promises-from-basic-to-advance?utm_source=hashnode&utm_medium=feed)

[ZyVOP](https://hashnode.com/@zyvop) · [Sep 18](https://hashnode.com/posts/the-javascript-event-loop-why-your-code-doesnt-run-the-way-you-think/6aacfc10c19a1922d0ac11b2)

### [The JavaScript Event Loop: Why Your Code Doesn't Run the Way You Think](https://blog.zyvop.com/the-javascript-event-loop-why-your-code-doesnt-run-the-way-you-think?utm_source=hashnode&utm_medium=feed)

A practical guide to the call stack, callback queue, and microtask queue — and why promises always win against timers.

5 min read · [blog.zyvop.com](https://blog.zyvop.com/the-javascript-event-loop-why-your-code-doesnt-run-the-way-you-think?utm_source=hashnode&utm_medium=feed)

[Sahil Gupta](https://hashnode.com/@sahilgupta2175) · [Sep 13](https://hashnode.com/posts/how-javascript-promises-work/6aa60439058fb21d5a42f292)

### [How Does JavaScript Handle a Value That Isn't Ready Yet?](https://sahilxdev.hashnode.dev/how-javascript-promises-work?utm_source=hashnode&utm_medium=feed)

Learn JavaScript Promises with the food delivery analogy - pending, fulfilled, rejected states, the promise lifecycle, and chaining.

6 min read · [sahilxdev.hashnode.dev](https://sahilxdev.hashnode.dev/how-javascript-promises-work?utm_source=hashnode&utm_medium=feed)

[Gautam Patel](https://hashnode.com/@iamgautam03) · [Sep 10](https://hashnode.com/posts/promise-all-vs-db-transaction/6aa27b455be87c3d90772a54)

### [Promise.all() Is Not a Transaction: What Happens When One Promise Fails?](https://iamgautam.hashnode.dev/promise-all-vs-db-transaction?utm_source=hashnode&utm_medium=feed)

Learn why Promise.all() doesn't provide atomicity, cancellation, or rollback when concurrent operations fail.

6 min read · [iamgautam.hashnode.dev](https://iamgautam.hashnode.dev/promise-all-vs-db-transaction?utm_source=hashnode&utm_medium=feed)

[Bhavy Ladani](https://hashnode.com/@Bhavy67) · [Aug 7](https://hashnode.com/posts/promise-internals/6a7610454a8c13f9df9c99de)

### [Promise Internals: What Actually Happens When You Call .then()?](https://bhavycodes.hashnode.dev/promise-internals?utm_source=hashnode&utm_medium=feed)

You use .then() almost every day, but have you ever wondered what actually happens after you call it? Where is the callback stored, who executes it, and how does JavaScript know exactly when to run it? Let us look behind the scenes and understand how Promises really work.

5 min read · [bhavycodes.hashnode.dev](https://bhavycodes.hashnode.dev/promise-internals?utm_source=hashnode&utm_medium=feed)

[Kanishka Shashi](https://hashnode.com/@Kshashi22) · [Jul 27](https://hashnode.com/posts/the-restaurant-that-runs-on-promises-a-javascript-love-story/6a67c0ad04b85b54809b5428)

### [The Restaurant That Runs on Promises: A JavaScript Love Story](https://javasblog.hashnode.dev/the-restaurant-that-runs-on-promises-a-javascript-love-story?utm_source=hashnode&utm_medium=feed)

A Quick Story Before We Begin Imagine you walk into a restaurant called Café Async. You sit down, and the waiter says: "I promise your food will arrive. It might come out perfectly cooked, or the kit

8 min read · [javasblog.hashnode.dev](https://javasblog.hashnode.dev/the-restaurant-that-runs-on-promises-a-javascript-love-story?utm_source=hashnode&utm_medium=feed)

[Alok Raj](https://hashnode.com/@AlokRaj21) · [Jul 24](https://hashnode.com/posts/javascript-promises-explained-for-beginners/6a639fc600d8e846bcd8489d)

### [JavaScript Promises Explained for Beginners](https://being-javascripted.hashnode.dev/javascript-promises-explained-for-beginners?utm_source=hashnode&utm_medium=feed)

Promises in JS I promise to explain promise in a fun way. A promise is a like a coin-toss which is either going to be a HEAD or TAILS. However, it is flicked in the air and in that time phase it is i

4 min read · [being-javascripted.hashnode.dev](https://being-javascripted.hashnode.dev/javascript-promises-explained-for-beginners?utm_source=hashnode&utm_medium=feed)

[Srekaravarshan N K](https://hashnode.com/@srekaravarshan) · [Jul 11](https://hashnode.com/posts/event-loop-microtasks-and-why-two-queues/6a52253510439b83c9e9daf0)

### [Part 6: Microtasks and Why Two Queues](https://srekaravarshan.hashnode.dev/event-loop-microtasks-and-why-two-queues?utm_source=hashnode&utm_medium=feed)

Why two queues, not one? The answer involves Promise chain atomicity, drain-to-completion, and an engineering trade-off the spec made in 2015.

28 min read · [srekaravarshan.hashnode.dev](https://srekaravarshan.hashnode.dev/event-loop-microtasks-and-why-two-queues?utm_source=hashnode&utm_medium=feed)
