Skip to content

Conversation

front42
Copy link

@front42 front42 commented Sep 2, 2025

It should be formulated a little more precisely. There is no "base object", it doesn't matter whether the object is created via the literal notation {} or the new keyword - it will inherit from Object.prototype, respectively, having access to the prototype methods, such as toString, etc. A custom object without a prototype (“very plain” or “pure dictionary”) can be created via Object.create(null);

It should be formulated a little more precisely. There is no "base object", it doesn't matter whether the object is created via the literal notation {} or the new keyword - it will inherit from Object.prototype, respectively, having access to the prototype methods, such as toString, etc. A custom object without a prototype (“very plain” or “pure dictionary”) can be created via Object.create(null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant