0

I can understand when to use callbacks and when to use promises in real world scenario except callback hell situation.

  • 3
    Does this answer your question? [Aren't promises just callbacks?](https://stackoverflow.com/questions/22539815/arent-promises-just-callbacks) – Keimeno Feb 11 '20 at 15:25
  • See also https://stackoverflow.com/questions/45041462/node-js-when-to-use-promises-vs-callbacks , https://stackoverflow.com/questions/14244775/what-is-the-difference-between-callback-and-promise, – spender Feb 11 '20 at 15:26
  • This might help: [When to use Promises vs Callbacks](https://stackoverflow.com/a/45046393/1823841) – palaѕн Feb 11 '20 at 15:26
  • If you're talking about making your own functions to utilize promises or callbacks, then... imo, if it's async, ALWAYS use promises, and if it's not async, then really ask yourself why you would need a callback. – TKoL Feb 11 '20 at 15:28

0 Answers0