Promise.reject()
Term side of the Card
Topic: Promise
Unit title: Promise.reject()
Categories: Method
Explanation side of the Card
Explanation: The static method that returns a `Promise` object that is rejected with a given reason. This is typically used to return a rejected `Promise` object in a chain of promises or for testing purposes.
Browser compatibility:
- The chrome browser supports this feature starting from version 32
- The edge browser supports this feature starting from version 12
- The firefox browser supports this feature starting from version 29
- The safari browser supports this feature starting from version 8
Availability: