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월.
Error.prototype의 name 데이터 속성은 모든 Error 인스턴스에서 공유됩니다. 이 속성은 오류의 종류를 나타내는 이름을 나타냅니다. Error.prototype.name의 초기 값은 "Error"입니다. TypeError 및 SyntaxError와 같은 하위 클래스는 자체적인 name 속성을 제공합니다.
문자열. Error.prototype.name의 초기 값은 문자열 "Error" 입니다.
| 쓰기 가능 | 가능 |
| 열거 가능 | 불가능 |
| 설정 가능 | 가능 |
기본적으로 Error 인스턴스에는 "Error"라는 이름을 갖습니다. name 속성과 message 속성은 Error.prototype.toString() 메서드에서 오류의 문자열 표현을 생성하는 데 사용됩니다.
| ECMAScript® 2027 Language Specification # sec-error.prototype.name |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2024년 9월 22일 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.