Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript: Updating Object Properties


var myDog = {
  "name": "Coder",
  "legs": 4,
  "tails": 1,
  "friends": ["freeCodeCamp Campers"]
};

// Update the name value
myDog.name = "Happy Coder";
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Updating #Object #Properties
ADD COMMENT
Topic
Name
1+8 =