Skip to content
Advertisements

Day: January 26, 2019

Object.defineProperty()

Object.defineProperty()

Why Object.defineProperty ? The Object.defineProperty () method allows for the precise addition or modification of a property in an object. By default, values ​​added using Object.defineProperty () do not change. […]

Object.defineProperties()

Object.defineProperties()

Object.defineProperties () creates or configures properties that are named and described by identifiers in the object. The names of the identifiers are property-generating objects that specify the properties of the properties to be created or the properties of the properties to be configured.

Object.create()

Object.create()

There are many ways to create a JavaScripte object. One of them is using the Object.create () method. The Object.create () method creates a new object using an existing object as the prototype of the newly created object.