[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Error/name [Back]  [Original]

Error.prototype.name - JavaScript | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

Error.prototype.name

Baseline Widely available

This feature is well established and works across many devices and browser versions. Its been available across browsers since 2015 7.

Error.prototype name Error . . Error.prototype.name "Error". TypeError SyntaxError name .

In this article

. Error.prototype.name "Error" .

Property attributes of Error.prototype.name

Error "Error" . name message Error.prototype.toString() .

js
const e = new Error("Malformed input"); // e.name 'Error'

e.name = "ParseError";
throw e;
// e.toString() 'ParseError: Malformed input' 

Specification
ECMAScript 2027 LanguageSpecification
# sec-error.prototype.name


Web Proxy Viewer  |  New URL  |  Original Page