I read a lot about Promises and how they work in javascript but I couldn't find an answer for: which API being called, from the JS engine.
When calling setTimeout, a timer will be set in the Web API.
As I create a new promise object, I understand it will use some API. Otherwise, what mechanism will bring the result back into the Microtask Queue, before the Event-Loop put it back in the Call-Stack?