Modern JavaScript Videos
About Lesson

In this video we want to learn about JavaScript Promises, In JavaScript Promise is an object that represents the eventual completion (or failure) of an asynchronous operation and its resulting value. It provides a way to handle asynchronous operations in more manageable and readable way. Promise has three states: pending, fulfilled and rejected. when Promise is created it starts in  pending state, which means that the asynchronous operation it represents has not yet completed. Once the operation completes, the Promise is either fulfilled with a result value or rejected with a reason for failure.




Join the conversation