Duration
2 min
Access
Pro
Transcript
Available

You can use the Promise.reject() method to create a promise that is rejected with the given reason.