<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/E1TbT0gva" -->

---
title: Async/await is awesome, but don't abandon Promises
description: Async/await is awesome, but don’t abandon Promises. The reason why this works deserves its own article, but here is an awesome explainer. For the die-hard...
canonical: https://daily.dev/posts/async-await-is-awesome-but-don-t-abandon-promises-e1tbt0gva
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Async/await is awesome, but don't abandon Promises | daily.dev
og:description: Async/await is awesome, but don’t abandon Promises. The reason why this works deserves its own article, but here is an awesome explainer. For the die-hard...
og:url: https://daily.dev/posts/async-await-is-awesome-but-don-t-abandon-promises-e1tbt0gva
og:image: https://api.daily.dev/og/posts/E1TbT0gva.png
og:image:alt: Async/await is awesome, but don't abandon Promises
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Async/await is awesome, but don't abandon Promises

**[JSK](https://daily.dev/sources/jsk)** · [@suhanw](https://daily.dev/suhanw) · 4 min read · 42 upvotes · 4 comments

## Summary

Async/await is awesome, but don’t abandon Promises. The reason why this works deserves its own article, but here is an awesome explainer. For the die-hard async / await fans out there, I learned (literally on the day of writing this story) that the following snippet actually does the same thing.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/javascript-in-plain-english/async-await-is-awesome-but-dont-abandon-promises-f815b3df51dc>

## Community discussion

Top comments from developers on daily.dev.

**@dailydev\_tango** · 2 upvotes

> The title here could have been re-written as don't execute sync logic before async logic if your async function doesn't care about your sync.
>
> Glad the author did update to include the last section.

**@alfreddagenais** · 1 upvotes

> Thanks very interesting

**@danyeldev** · 1 upvotes

> cool!

---

[View this post on daily.dev](https://daily.dev/posts/async-await-is-awesome-but-don-t-abandon-promises-e1tbt0gva)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Async/await is awesome, but don't abandon Promises","url":"https://daily.dev/posts/async-await-is-awesome-but-don-t-abandon-promises-e1tbt0gva","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/async-await-is-awesome-but-don-t-abandon-promises-e1tbt0gva"},"datePublished":"2020-11-16T13:29:06.267Z","dateModified":"2021-10-07T14:17:10.317Z","description":"Async/await is awesome, but don’t abandon Promises. The reason why this works deserves its own article, but here is an awesome explainer. For the die-hard...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/630875b7cc67d95725b64449abc91721","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/630875b7cc67d95725b64449abc91721","isAccessibleForFree":true,"articleSection":"JSK","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Suhan Wijaya","url":"https://daily.dev/suhanw","image":"https://avatars1.githubusercontent.com/u/27381522?v=4","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":270}},"commentCount":4,"discussionUrl":"https://daily.dev/posts/async-await-is-awesome-but-don-t-abandon-promises-e1tbt0gva","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":42},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":4}],"keywords":"","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"JSK","item":"https://daily.dev/sources/jsk"},{"@type":"ListItem","position":3,"name":"Async/await is awesome, but don't abandon Promises"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/async-await-is-awesome-but-don-t-abandon-promises-e1tbt0gva","comment":[{"@type":"Comment","text":"The title here could have been re-written as don’t execute sync logic before async logic if your async function doesn’t care about your sync.\nGlad the author did update to include the last section.","datePublished":"2020-11-16T18:25:06.684Z","url":"https://daily.dev/posts/E1TbT0gva#c-YMiqnl8W7","author":{"@type":"Person","name":"Adam Trimeloni","url":"https://daily.dev/dailydev_tango","image":"https://lh3.googleusercontent.com/a-/AOh14GhFji6eBhu7tTlG0ZhK-E6BLSe8EiKMZStPCyX-SvY=s100"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"Thanks very interesting","datePublished":"2020-11-17T04:57:08.002Z","url":"https://daily.dev/posts/E1TbT0gva#c-kcL4tFY3r","author":{"@type":"Person","name":"Alfred Dagenais","url":"https://daily.dev/alfreddagenais","image":"https://avatars1.githubusercontent.com/u/5769264?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"cool!","datePublished":"2020-11-16T18:55:22.159Z","url":"https://daily.dev/posts/E1TbT0gva#c-v8ofCHjDZ","author":{"@type":"Person","name":"Daniel Saavedra","url":"https://daily.dev/danyeldev","image":"https://avatars0.githubusercontent.com/u/33289577?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
```

