js change object property value 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 change object property value in javascript
myObject.sProp = 'A new string value for our original string property';