Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 8
    Yes: callbacks are just first-class-functions. Promises are monads that provide a composable mechanism to chain operations on values, and happen to use higher-order functions with callbacks to provide a convenient interface. Commented Nov 12, 2015 at 22:29
  • 1
    Possible duplicate of JS Async: . Can I forget callbacks all together and replace with promises and/or generators Commented Nov 12, 2015 at 22:46
  • 5
    @gnat: Given the relative quality of the two questions/answers, the duplicate vote should be the other way around IMHO. Commented Nov 13, 2015 at 9:04