Object is the primitive JavaScript object type. All JavaScript objects are descended from Object. That is, all JavaScript objects have the methods defined for Object.:
| Category | Subject | Sinopsys | Description | Example |
|---|---|---|---|---|
| Property | constructor | Specifies the function that creates an object's prototype. Note that the value of this property is a reference to the function itself, not a string containing the function's name | ||
| Property | prototype | Represents the prototype for this class. You can use the prototype to add properties or methods to all instances of a class | ||
| Function | toSource() | Returns a string representing the source code of the object | ||
| Function | toString() | Returns a string representing the specified object | ||
| Function | valueOf() | Returns the primitive value of a object. The primitive value is inherited by all objects descended from the object. The valueOf() method is usually called automatically by JavaScript behind the scenes and not explicitly in code. | ||
| toLocaleString | ||||
| hasOwnProperty | ||||
| isPrototypeOf | ||||
| propertyIsEnumerable |