Asynchronous Programming

In JavaScript programs, you are dealing with asynchronous code whenever you write code that involves operations like making a network request or querying a database. You need to understand how asynchronous code behaves. And more importantly, you need to write asynchronous code in a clean and maintainable way. And that is what you are going to learn in this chapter.