js object define property default code example
Example: javascript object get property or default
// won't work if obj.property is falsey
let value = obj.property || "default";
// won't work if obj.property is falsey
let value = obj.property || "default";