4 ms·
They are both trying to solve the problem of handling asynchronous operations in an easier way than nested callbacks. Promises are a different abstraction of a
by jergason 14y ago
They are both trying to solve the problem of handling asynchronous operations in an easier way than nested callbacks.
Promises are a different abstraction of async operations. I am still trying to wrap my head around them fully, but one of the advantages seems to be writing code that looks a little more sequential.