2 ms·
Callback hell was before the introduction of Promises. Promises tried to abstract away the callback mechanism and it made things a little clearer, but you still
by skywal_l 5y ago
Callback hell was before the introduction of Promises. Promises tried to abstract away the callback mechanism and it made things a little clearer, but you still had the pyramid effect of successive Promises.
Await/Async kind of streamlined all this.
- dsnr 5y agoI still somewhat prefer the readability of promises vs. await. I like the expressiveness of a then/catch as functions as opposed to try/catch blocks, which I‘ve always disliked. But I agree that await is more suitable for more complex scenarios.