This repository contains real-world scenarios implemented using JavaScript Promises and asynchronous programming techniques.
-
- Check username and password with async simulation.
- Add new users and assign passwords.
-
- Simulates async image loading.
- Uses
Promise.race,Promise.allSettled, and error handling.
-
- Fetch profiles and posts asynchronously.
- Examples in parallel, series, and extended details.
-
Competing Servers (Promise.race)
- Simulates fetching from multiple servers with random delays.
- Demonstrates
Promise.race()behavior.
-
Weather API Simulation Simulates fetching weather information asynchronously with random delays and errors.
- Learnings: Handling promises with
setTimeout, simulating real-world API delays.
- Learnings: Handling promises with
-
File Download Progress Simulation
- This project simulates file downloading with progress updates and intermittent connection interruptions. It demonstrates asynchronous JavaScript using Promises and setTimeout to mimic real-world file downloads.
-
- This project demonstrates API call batching in JavaScript using Promises. It simulates multiple API requests with random success/failure and allows processing them in batches, ensuring efficient and controlled execution.
-
- Currently in prograss but i have made this project based on the research i did on e-commerce backend operation and made a simulation of of the processes involved while processing an operation.
This repo is part of my journey to master asynchronous programming in JavaScript. Each scenario reflects real-world cases where async logic is crucial.