Which is the correct syntax to access an object property in JavaScript?
Options:
Explanation:
The properties of an object can we accessed using either
objectName.propertyName or
objectName["propertyName"].
Tags:
JavaScript
Answer:
Which is the correct syntax to access an object property in JavaScript Both B. and C..