Understanding Promises in JavaScript

added by JavaScript Kicks
1/29/2019 8:39:17 AM

555 Views

JavaScript is a single-threaded programming language, that means only one thing can happen at a time. Before ES6, we used callbacks to handle asynchronous tasks such as network requests. Using promises, we can avoid the infamous 'callback hell' and make our code cleaner, easier to read, and easier to understand.


0 comments