JS

Objects in JavaScript - Querying and setting prope...

16.

How can you query a property value from an object in JavaScript?

Using dot notation, e.g. object.property

Using square bracket notation, e.g. object["property"]

Using the querySelector method, e.g. object.querySelector("property")

Using the get method, e.g. object.get("property")