1.

Why are promises better than callbacks?

Answer»

Here are some of the reasons why promises are better than callbacks:

  • They are built over callbacks and very efficient abstractions.
  • They allow cleaner and better functional code.
  • They end up with FEWER error-prone boilerplate.
  • They provide a catching mechanism that is not available in Callbacks.
  • You have a SUPERIOR level of CONTROL and trust while delegating tasks through promises RATHER than callbacks.


Discussion

No Comment Found