create types of some other object property 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: adding function to objects js
var myObj = {
myFunc: function(param){
//do stuff
}
}