Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Understanding Node.js Event-Driven Architecture. Parent comment
Promises are easier to compose because you can pass them around as values. Meanwhile callbacks are used only for their side-effects, they do not return anything.
There are no comments on this comment yet.
Promises are easier to compose because you can pass them around as values. Meanwhile callbacks are used only for their side-effects, they do not return anything.