```html KB – Asynchronous JavaScript

KB • Asynchronous JavaScript

What is Asynchronous JavaScript?

JavaScript runs on a single thread, but many operations (network requests, timers, file I/O in Node, etc.) are asynchronous. This means they can start now and finish later without blocking the main thread.

Modern JavaScript offers async/await syntax built on top of Promises for a clean, linear style.

Live async/await Demo

Enter a small async function below and click Run to see the result.

Fetching Posts with fetch()

Click the button to load a list of posts from JSONPlaceholder using async/await.


    
```