3 ms·
In practical terms Promises just moved callbacks into .then() instead of a function parameter and encouraged the use of pre-written functions instead of anonymo
by BeefWellington 5y ago
In practical terms Promises just moved callbacks into .then() instead of a function parameter and encouraged the use of pre-written functions instead of anonymous inline functions. It solves a lot of legibility problems.
It was entirely possible to write nice-looking Javascript before Promises were a thing; people just didn't.