Standard built-ins
Error.name
Conventional error type label, typically inherited from an Error prototype. Custom names may be assigned; it is not proof of identity.
Formal Syntax & Structure
javascript syntaxjavascript
error.nameReturn Value
String
Conventional name.
Working Example
Example Snippetjavascript
console.log(new TypeError("x").name);