14.
How can you add a new property to an object in JavaScript?
Using dot notation
Using bracket notation
Using the Object.defineProperty() method
Using the Object.create() method
Correct: A, B
In JavaScript, you can add a new property to an object by using either dot notation or bracket notation. Dot notation is used when the property name is a valid identifier, while bracket notation is used when the property name is a string or contains special characters.