JavaScript: Async
1h 31mIntermediate2021-10-26
Authors

Sasha Vodnik
Principal Technical Course Developer at DocuSign
Course details
Asynchronous code is the foundation of most modern web experiences. It allows programs to switch between tasks and juggle multiple requests. However, without a thorough understanding of asynchronous programming, developers can write bloated code that works against the architecture of the web. Join Sasha Vodnik in this course, which explores asynchronous approaches to JavaScript programming using callbacks, promises, and the async/await operators in ES6. Learn what's going on line by line in your code, revisit basic structures like XMLHttpRequest (XHR) objects and setTimeout(), and discover how to use the new syntax options in JavaScript to tackle any coding challenge.
Learning objectives
Defining asynchronous programming
Building code using a callback
Building code using promises
Batching multiple promises
Building code using async/await
Creating a web worker
Sending data to and returning data from web workers
Learning objectives
Defining asynchronous programming
Building code using a callback
Building code using promises
Batching multiple promises
Building code using async/await
Creating a web worker
Sending data to and returning data from web workers
Skills covered
JavaScriptOracleProgramming LanguagesSoftware DevelopmentDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Implementing smart asynchronous code
- 02 - What you should know
- 03 - Environment setup
- 04 - Getting an OpenWeatherMap API key
1. Programming Asynchronously with Callbacks
- 05 - Understanding what asynchronous means
- 06 - Defining asynchronous programming
- 07 - Using callbacks in asynchronous programming
- 08 - Implementing callbacks for problem-solving
- 09 - Using error checking with multiple callbacks
2. Programming Asynchronously with Promises
- 10 - Understanding promises
- 11 - Building asynchronous code with promises
- 12 - Appending methods to resolved promises
- 13 - Using catch methods for rejected promises
- 14 - Using the finally method for executing handlers
- 15 - Preparing the all method for executing multiple promises
- 16 - Implementing the all method for executing multiple promises
- 17 - Making code backward-compatible with polyfill
3. Programming Asynchronously with Async Await
- 18 - Understanding the async await model
- 19 - Using async functions with await statements
- 20 - Using statements to handle errors in async await code
- 21 - Making async await code backward compatible with polyfill
4. Programming Asynchronously with Web Workers
- 22 - What is a web worker
- 23 - Creating a web worker
- 24 - Sending data to a web worker
- 25 - Returning data from a web worker
- 26 - Identifying use cases for web workers
Conclusion
- 27 - Asynchronous coding experience