Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015년 7월.
Promise.reject(reason) 메서드는 주어진 이유(reason)로 거부된 Promise 객체를 반환합니다.
이 Promise를 거부한 이유.
정적 Promise.reject 함수는 거부된 Promise를 반환합니다. 디버깅 목적 및 까다로운 오류를 잡기 위해, reason을 Error생성자의 인스턴스로 만들면 유용합니다.
| ECMAScript® 2027 Language Specification # sec-promise.reject |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2023년 8월 8일 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.