16.5 Summary
In this chapter, we introduced asynchronous programming, an important concept in JavaScript. You also learned about various advanced features. Here's what you should take away from this chapter:
-
In asynchronous programming, the call of a function and the return of the result are not directly coupled to each other as in synchronous programming. Instead, the return value (or the result of the function) and also errors are transferred to the calling code in a different way. The following variants are available in JavaScript for this purpose:
-
Callbacks simplify the writing of asynchronous code by encapsulating the callback functions of the asynchronous function. The new async and await keywords introduced in ES2017 make asynchronous ...
-
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access