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.
Access this course and 1400+ top-rated courses and projects.