25.
Which of the following statements is true about accessing object properties in JavaScript?
You can only access object properties using dot notation.
You can only access object properties using square bracket notation.
Dot notation is preferred when the property name is dynamic or stored in a variable.
Square bracket notation is preferred when the property name is known beforehand.
Correct: C, D
In JavaScript, you can access object properties using both dot notation and square bracket notation. Dot notation is commonly used when the property name is known beforehand, while square bracket notation is preferred when the property name is dynamic or stored in a variable.