Understanding JavaScript Promises

Understanding JavaScript Promises

English | 2023 | 90 Pages | PDF, EPUB | 10 MB

Learn all about JavaScript promises from veteran JavaScript author Nicholas C. Zakas.

Since promises were added to JavaScript in 2015, they have become an integral part of the language. A good understanding of how promises work is more important than ever in becoming a proficient JavaScript developer. This book is written to introduce the promises and their intricacies in a straightforward, easy to read format. Each chapter is filled with practical, real-world examples using the techniques discussed, and all examples are available for download with your purchase.

What you’ll learn:

  • Which parts of promises are synchronous and which are asynchronous
  • How to effectively use promise chains to simplify your code
  • The best way to catch errors in promises
  • How to create your own promises
  • Ways to work with multiple promises at once
  • How async functions and await expression hide promise complexities
  • What happens to rejected promises without rejection handlers
Homepage