- A 0
- B 10
- C undefined
- D Error
- Share this MCQ
Answer:
B
Share this MCQ
The Object.defineProperties()
method is a predefined function in the object library of JavaScript that is used to define new properties or modify existing properties on an object. It returns the object.
The Object.defineProperties()
method takes an object as its first argument and a property descriptor object as its second argument. The property descriptor object can specify the characteristics of one or more properties to be added to or modified on the object.
Share this MCQ