The name
data property of Error.prototype
is shared by all Error
instances. It represents the name for the type of error. For Error.prototype.name
, the initial value is "Error"
. Subclasses like TypeError
and SyntaxError
provide their own name
properties.