how to change property in object js code example
Example 1: JavaScript: Updating Object Properties
var myDog = {
"name": "Coder",
"legs": 4,
"tails": 1,
"friends": ["freeCodeCamp Campers"]
};
// Update the name value
myDog.name = "Happy Coder";
Example 2: how to update object in javascript
myObject['first name'] = 'John'; // property name with a space