These are three generations of handling asynchronous operations in Node — each improving readability over the last, but all built on the same event-loop foundation.
1. Callbacks — the original (and "callback hell")
fs.(, {
(err) (err);
fs.(, {
(err) (err);
db.(a + b, {
(err) (err);
});
});
});
