Subscribe to Evented Mind to watch the full video.

Already have an Evented Mind subscription?

Subscribe to Evented Mind to watch the full video.

Need a second look? Watch again

ES2015

Promises

Promises give us a nicer API for working with asynchronous functions. Instead of passing callbacks that get called at a later time, we can use the "then" method of the promise. You can even chain together many "then" calls. In this video we'll implement a sleep method that works with promises to return a result at a later time.

  • JavaScript
Join the Discussion

Want to leave a comment? .