O'Reilly logo

JavaScript Promises Essentials by Rami Sarieddine

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. The Promise API and Its Compatibility

Promises are fairly new to the JavaScript world, but workarounds have been around for some time now. As we have seen in the previous chapter, there are ways to address asynchronous programming in JavaScript, be it through events or callbacks. You also learned why promises differ from the traditional techniques for that purpose.

Next, we will go into more details of the Promise API. You will also learn about the current browser support for the promises standard and take a look at the JavaScript libraries out there that implement promises and promise-like features. In this chapter, we will cover the following topics:

  • The Promise API and its details
  • Browser compatibility
  • Promise implementations
  • Libraries ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required