Demystifying Promises vs Callbacks
Aren’t Promises just regular Callbacks? What are the pros/cons of using one over the other? Promises vs Callbacks? Questions like these bothering you? Not anymore! Before we actually go dive in deeper, lets quickly remind ourselves the basic definitions of these terms and what they are meant to accomplish. Callbacks: A Callback is a any function which is passed as a parameter to another function and is invoked/executed only after …read more