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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.