Promises are a new feature of ES6. They allow you to write promise-based code as if it were synchronous. Promise is a special JavaScript object that links the “producing code” and the ‘consuming code’ together. There are 3 states of the Promise object:Pending: Initial State, before the Promise succeeds or fails; Resolved: Completed Promise; Failed: Failed Promise.
1 Comment
Sort: