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.
One-On-One Questions or Comments?
Something not making sense, want to share your thoughts or just say hello? I check this daily!