DEV Community

Discussion on: What is a promise in javascript ? how does it solve callback hell issue?

Collapse
 
scotthannen profile image
Scott Hannen

This post: scotthannen.org/blog/2016/03/01/ch...
Shows a side-by-side (or above-and-below) example of the same code with callbacks and with promises. It was a few years ago. I probably wouldn't cram all those promises into one line of code like that. But even still it shows the simplification.