JS: Object (class)
What is the Keyword “Object”
Object
is the value of the property key "Object"
of the Global Object
.
console.log(globalThis["Object"] === Object);
Type
Type of Object
is a function.
typeof Object === "function"
Parent
Parent of Object
is Function.prototype.
Reflect.getPrototypeOf ( Object ) === Function.prototype
Purpose
Purpose of Object
is:
- To convert Primitive Value to a object.
- Used as a namespace to hold static methods.
- Holds the property key
"prototype"
. Its value is the parent of all instance of object.
Object Consructor
Properties
- JS: Object.hasOwn
- JS: Object.getOwnPropertyDescriptor
- JS: Object.getOwnPropertyDescriptors
- JS: Object.defineProperty
- JS: Object.defineProperties
JavaScript, Object and Inheritance
- JS: Object Tutorial
- JS: Object Overview
- JS: Object Type
- JS: Test is Object Type 💠
- JS: Determine Type of Object
- JS: Prototype and Inheritance
- JS: Prototype Chain
- JS: Object.prototype.isPrototypeOf
- JS: Get Set Prototype
- JS: Show Prototype Chain 💠
- JS: Prototype Tree
- JS: Dot Notation and Prototype Chain
- JS: Create Object
- JS: Object Literal Expression
- JS: Object.create
- JS: Object Literal Expression vs Object.Create
- JS: Create Object with Parent X
- JS: Prevent Adding Property
- JS: Deep Copy Array or Object 💠
- JS: Test Equality of Array and Object by Content 💠
- JS: Add Method to Prototype
- JS: Object (class)
- JS: Object Constructor
- JS: Object.prototype