Question #147701

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

Test Your Knowledge

Want to practice more questions like this? Take a quiz in this category!

Take a Quiz

Share This Question