While the Document object and SetTimeout function are web API’s included in JavaScript runtime, the Array or Date object is built into the programming language. So where exactly do promises fit in?
Do they belong to a browser API or are they a part of the JavaScript language that runs within the JavaScript engine?