"fulfilled" 50 "rejected" undefined
- Instance Property: An instance property is a property that has a new copy for every new instance of the class.
|constructor||Return the promise constructor function for the object.|
- Static Method: If the method is called using the array class itself then it is called a static method.
|all()||Handle all the asynchronous operations), that take an array of promises(an iterable) as input.|
|allSettled()||Get a promise when all inputs are settled that is either fulfilled or rejected.|
|any()||Return a single promise that fulfills with the value from that promise.|
|race()||Returns a single Promise after receiving an iterable of promises as input.|
|reject()||Returns a Promise object that is rejected with a given reason.|
|resolve()||Returns a Promise object that is resolved with a given value.|
- Instance Method: If the method is called on an instance of a promise then it is called an instance method.
|catch()||The return value of the callback if it is called.|
|then()||Deal with asynchronous tasks such as API calls.|
|finally()||Return a Promise when a Promise is settled, that is, it is either fulfilled or rejected.|
Please Login to comment...