Problems when using asynchronous programming

Just to refresh your memory, in Chapter 2, The JavaScript Asynchronous Model, we learned a great deal on asynchronous programming, what it is, and how JS implements it. We all know that the problem in using JS is the level of complexity it has developed, as it's heavily dependent on the callbacks for most of its operations. In the Handling callback hell section of Chapter 2, The JavaScript Asynchronous Model, we saw that it's nearly impossible to debug the code if callbacks were getting out of control. The promise paradigm was then called in to solve this problem. The same occurrences are with JS when applied at WT.

Get Mastering JavaScript Promises 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.