Why are promises better than callbacks?

It’s not about callback hell pyramid of doom

Samer Buna
Oct 29, 2019 · 5 min read

The difference between callbacks and promises in JavaScript is subtle but significant! Why exactly are we ditching callbacks in favor of promises?

How would you answer these questions in an interview??

The superiority of promises over callbacks is all about trust and control. Let me explain.

We generally need to use callbacks or promises when there is a slow process (that’s usually IO-related) that we need to…