Chapter 2

Asynchronous JavaScript

Learning Objectives

By the end of this chapter, you will be able to:

  • Define asynchronous programming
  • Characterize the JavaScript event loop
  • Utilize callbacks and promises to write asynchronous code
  • Simplify asynchronous code with async/await syntax

In this chapter, we shall learn Asynchronous JavaScript and its uses.

Introduction

In the previous chapter, we covered many of the new and powerful features released in ES6. We discussed the evolution of JavaScript and highlighted the key additions in ES6. We discussed scope rules, variable declaration, arrow functions, template literals, enhanced object properties, destructuring assignment, classes and modules, transpiling, and iterators and generators.

Get Advanced JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.