- A Object.defineProperty()
- B Object.defineProperties()
- C Both Object.defineProperty() and Object.defineProperties()
- D Object.inherit()
- Share this MCQ
Answer:
C
Share this MCQ
The Object.defineProperty()
method is used to define a new property on an object, or to modify an existing property on an object. It returns the object. Both Object.defineProperty()
and Object.defineProperties()
can be used to define new properties on an object.
Share this MCQ