Search code examples
javascriptes6-promise

What is the browser feature called that ES6 Promises use?


I was recently asked and did not know the answer; "What is the feature that all modern browsers support that allow the use of Promises"?

Please correct me here if I'm wrong, but my understanding was that in recent years, XMLHttpRequest was used in Javascript and was what jQuery used behind the scenes for $.ajax until version 3 where jQuery now uses promises.

I thought Promises were apart of ES6/Javascript2015, therefore I thought it was Javascript that dealt with Promises and not a browser feature as such.


Solution

  • Maybe they meant fetch API which is based on promises.