Secret sauce that brings YouTube followers, views, likes
Get Free YouTube Subscribers, Views and Likes

Still Don't Understand JavaScript Promises? Watch this!

Follow
Catherine Li

JavaScript Promises are really useful when it comes to managing asynchronous functions. For example, if you want to wait for an ajax call or setTimeout to complete and THEN do something, promises can help you do that.
In the past, when we’ve wanted to wait for asynchronous functions to complete, we’ve had to use callbacks, and this could get really messy when we wanted to wait for multiple asynchronous functions to run one after after, and we’ve had to nest callbacks within each other, what’s known as callback hell.
You will absolutely run into Promises if you do any full stack or frontend web development, and you might get asked about it during interviews.
If you have any questions, be sure to leave a comment below!

Subscribe to my channel! https://bit.ly/3DBIIRj

posted by klmpcqn