Part 9: Understanding JavaScript Async Promises

Play Part 9: Understanding JavaScript Async Promises
Sign in to queue

The Discussion

  • User profile image

    Isn't promises callbacks under the cover?

  • User profile image

    @mshaw: I don't claim to be the expert on this at all.  I have an "end user's" knowledge.  However, this article:

    ... does a really nice explaining what the promise really is and how it relates to callbacks.

    "A promise is an object. It is not a function and it is not the value returned from the async operation. To get to the value, you need to call the then method on the promise object. You pass a callback function as an argument to then. The promise invokes the callback and passes the value you're interested in into the callback. Clear as mud, right?"

Add Your 2 Cents