Promises
Introduction to promises in JavaScript for asynchronous programming
Background
Callback functions can be used to do tasks after the execution of asynchronous functions. However, callback function become tedious when designing a program with a series of sequential asynchronous functions. It results in code congestion.
Get hands-on with 1400+ tech skills courses.