Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Is a promise an API of the browser or a JavaScript object?

The Document object or the SetTimeout function I understand are web API’s that are included in the JavaScript runtime, whereas an Array or Date object is built into the programming language itself. Where do promises fit? Are they part of a browser Api or are they are part of the JavaScript language that run in the js engine!? Online sources are confusing me! Thanks

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Promises are JavaScript objects. They’re documented in the EcmaScript specification.

There’s nothing browser-specific about promises, and they’re implemented in node.js, not just browsers.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading