---
title: "Discussion on \"Synchronous vs Asynchronous JavaScript\" | Hashnode"
description: "Discussion on \"Synchronous vs Asynchronous JavaScript\". JavaScript runs one line at a time, in order, top to bottom. That's the default. And for most code, that's fine.\nBut what happens when one of those lines takes two seconds? Everything after it waits."
url: "https://hashnode.com/posts/synchronous-vs-asynchronous-javascript/6a00ca70e3eebc2e20b42b84"
---

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

Discussion

# [Synchronous vs Asynchronous JavaScript](https://kushagrablogs.hashnode.dev/synchronous-vs-asynchronous-javascript?utm_source=hashnode&utm_medium=feed)

JavaScript runs one line at a time, in order, top to bottom. That's the default. And for most code, that's fine. But what happens when one of those lines takes two seconds? Everything after it waits.

May 10 · 5 min read · kushagrablogs.hashnode.dev  
Read the article

-   [#synchronous-vs-asynchronous](https://hashnode.com/tag/synchronous-vs-asynchronous)

## Written by

[Kushagra Trivedi](https://hashnode.com/@kushagratrvd)

@kushagratrvd

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
