This is what javascript.info says about built-in Objects in a summary:
"All built-in objects follow the same pattern:
The methods are stored in the prototype ( Array.prototype , Object.prototype , Date.prototype , etc.)
The object itself stores only the data (array items, object properties, the date)"
I know that for example. JavaScript have Object(), wich is the constructor function for objects instances, and Object.prototype, wich is the prototype for all the object instances of the constructor Object() where they inherent methods.
But what is exactly the “Object itself” that only stores the data (array items, object properties, the date)? It is the constructor function? Or it is something else I am missing?
This is mixup of two different concepts and that’s probably the origin of your confusion. Array, Object and Date are not built-in objects, it’s fairly easy to verify:
They are built-in constructor functions, aka classes. We need them to create instances of Array, Object or Date and instances would be objects, but not built-in, because you have created them and you can remove them.
Constructor functions have 2 types of methods:
Prototype: stored in Constructor.prototype
Static: stored directly on the function
Prototype methods are shared with all instances of that class and only constructor functions can have prototype: