MCQ
Which method is used to add a new property to an object?
JavaScript
A Object.defineProperty()
B Object.assign()
C Dot notation or bracket notation
D All of the above
Explanation

All of these methods can be used to add properties to an object.