3 ms·
Node is actually best used with Promises, which aren't even mentioned in this post. Promises, aside from being far more concise with a huge amount of utility,
by ralusek 10y ago
Node is actually best used with Promises, which aren't even mentioned in this post.
Promises, aside from being far more concise with a huge amount of utility, do not leak errors or exceptions.
doAMillionThings()
.catch((err) => handleAnything(err));