JavaScript: Object Object
Object
is the value of the property key "Object"
of the Global Object
.
console.log( window.Object === Object );
Type
Type of Object
is a function.
console.log( typeof Object === "function" );
Parent
Parent of Object
is Function.prototype.
console.log( Reflect.getPrototypeOf ( Object ) === Function.prototype );
Purpose
Purpose of Object
is:
- To convert primitive value (such as string, number, boolean) to a object. (by
Object(âŠ)
) - Used as a namespace to hold general purpose methods for working with objects. For example,
Object.isExtensible(âŠ)
. - Holds the property key
"prototype"
. The value ofObject.prototype
is the root parent object of all standard objects. (so they inherit useful methods.) [see Prototype and Inheritance]
For tutorial, see Object Overview .
Object Consructor
Properties
JavaScript Object and Inheritance
- Object Basics
- Object Overview
- Object Type
- Test If a Value is Object Type ð
- Find Object's Type
- Prototype and Inheritance
- Prototype Chain
- Is in Prototype Chain?
- Get/Set Parent
- Show Parent Chain ð
- Create Object
- Object Literal Expr
- Create Object + Parent
- Prevent Adding Property
- Clone Object ð
- Test Object Equality ð
- Add Method to Prototype