JS

Objects in JavaScript - Querying and setting prope...

15.

How can you set the value of a property in an object in JavaScript?

Using dot notation, e.g. object.property = value

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

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

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