---
title: "Discussion on \"Async/Await in JavaScript: Writing Cleaner Asynchronous Code\" | Hashnode"
description: "Discussion on \"Async/Await in JavaScript: Writing Cleaner Asynchronous Code\". 01. Why Async/Await Was Introduced\nJavaScript runs on a single thread. It can only do one thing at a time. So when it needs to wait for something — a network request, a file read, a timer — it can't j"
url: "https://hashnode.com/posts/async-await-in-javascript-writing-cleaner-asynchronous-code/69e86073e436727814de814a"
---

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

Discussion

# [Async/Await in JavaScript: Writing Cleaner Asynchronous Code](https://sofiyablogonjs.hashnode.dev/async-await-in-javascript-writing-cleaner-asynchronous-code?utm_source=hashnode&utm_medium=feed)

01\. Why Async/Await Was Introduced JavaScript runs on a single thread. It can only do one thing at a time. So when it needs to wait for something — a network request, a file read, a timer — it can't j

Apr 22 · 6 min read · sofiyablogonjs.hashnode.dev  
Read the article

-   [#asynchronous](https://hashnode.com/tag/asynchronous)
-   [#await](https://hashnode.com/tag/await)
-   [#callback-functions](https://hashnode.com/tag/callback-functions)
-   [#error-handling](https://hashnode.com/tag/error-handling)

## Written by

[Sofiya Shaikh](https://hashnode.com/@sofiyaccss)

@sofiyaccss

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
