what are object properties code example
Example 1: javascript object get property or default
// won't work if obj.property is falsey
let value = obj.property || "default";
Example 2: Add New Properties to a JavaScript Object
var myDog = {
"name": "Happy Coder",
"legs": 4,
"tails": 1,
"friends": ["freeCodeCamp Campers"]
};
myDog.bark = "woof";
// or
myDog["bark"] = "woof";