The attributes of properties

When using a class, the attributes of the static and non-static properties of the constructor are different from when declared using a function:

  • The static methods are writable and configurable, but not enumerable
  • The prototype property and the prototype.constructor property of a class are not writable, enumerable, or configurable
  • The properties of the prototype property are writable and configurable, but not enumerable

Get Learn ECMAScript - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.