This repository contains code examples from my personal practice with asynchronous JavaScript concepts. Each folder corresponds to a specific topic, and the code was created to reinforce my understanding of async patterns and behaviors in JavaScript.
-
async-await — Using async functions and await expressions
-
block-main-thread — Demonstrating how synchronous code can block the browser
-
callback-hell — Nested callbacks and their pitfalls
-
dog-api-fetch — Fetching data from the Dog API using fetch
-
dog-api-xhr — Fetching data from the Dog API using XMLHttpRequest
-
fetch-api — Basics of the Fetch API
-
fix-callback-hell — Refactoring callback-heavy code into cleaner patterns
-
promises — Creating and handling Promises in JavaScript
-
try-catch — Error handling in asynchronous code
- This repo is based on the YouTube playlist: Async JavaScript Playlist