Learn JavaScript: Asynchronous Programming
Write JavaScript that waits without freezing: setTimeout, promises, then, catch and finally, chaining, Promise.all, and modern async functions with await and try...catch.
- Intermediate level
- 2 modules
- 18 lessons
- 74 tasks and questions
Syllabus
01PromisesWrite code that waits without freezing: understand asynchronous execution, setTimeout and the event loop, create promises, consume them with then, catch and finally, chain dependent steps, debug common promise mistakes, and run several at once with Promise.all.10 lessons
02Async and AwaitWrite asynchronous code that reads like synchronous code: async functions, the await operator, sequential steps, error handling with try...catch, and running independent tasks together with Promise.all.8 lessons