This page is not complete.
Note: If you are working on a computer/tablet/other device where you don't have the ability to create your own files, you could try out (most of) the code examples in an online coding program such as JSBin or Thimble.
- In the first article of this module we look at what synchronous and asynchronous code are (sync and async), and how they differ. We'll also examine traditional sync methods of handling a sequence of operations, see what the problems are, and begin to understand how async techniques can help us solve such problems.
- Async loops and intervals
- Handling async operations gracefully with Promises
- Easier async code with async and await
- Promises can be somewhat complex to set up and understand, and so modern browsers have implemented
asyncfunctions and the
awaitoperator — the former allows standard functions to implicitly behave asynchronously with promises, whereas the latter can be used inside
asyncfunctions to wait for promises before the function continues, making chaining of promises easier. This article explains