- A Object.methods(add)
- B Object.add(methods)
- C Object.add.methods(
- D Object.prototype
- Share this MCQ
Answer:
D
Share this MCQ
It is possible to add methods to the Object.prototype
object in JavaScript, which makes them available on all objects. This can be done using the Object.defineProperty()
method or by assigning a new property directly to the Object.prototype
object.
Share this MCQ