Explore asynchronous programming in JavaScript. Learn how to build faster, more efficient code with callbacks, promises, and the async/await operators.
Overview
Syllabus
Introduction
- Implementing smart asynchronous code
- What you should know
- Environment setup
- Getting an OpenWeatherMap API key
- Understanding what asynchronous means
- Defining asynchronous programming
- Using callbacks in asynchronous programming
- Implementing callbacks for problem-solving
- Using error checking with multiple callbacks
- Understanding promises
- Building asynchronous code with promises
- Appending methods to resolved promises
- Using catch methods for rejected promises
- Using the finally method for executing handlers
- Preparing the all method for executing multiple promises
- Implementing the all method for executing multiple promises
- Making code backward-compatible with polyfill
- Understanding the async/await model
- Using async functions with await statements
- Using statements to handle errors in async/await code
- Making async/await code backward compatible with polyfill
- What is a web worker?
- Creating a web worker
- Sending data to a web worker
- Returning data from a web worker
- Identifying use cases for web workers
- Asynchronous coding experience
Taught by
Sasha Vodnik