Tell us what’s happening:
On one hand , I am required to edit the myDog object and on the other hand I am faced with issue which says the opposite, i.e., I can not edit the myDog object
Your code so far
// Example
var ourDog = {
"name": "Camper",
"legs": 4,
"tails": 1,
"friends": ["everything!"]
};
ourDog.bark = "bow-wow";
// Setup
var myDog = {
name: "Happy Coder",
legs: 4,
tails: 1,
friends: ["freeCodeCamp Campers"]
};
// Only change code below this line.
myDog.bark = "woof";
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36
.
Challenge: Add New Properties to a JavaScript Object
Link to the challenge:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/add-new-properties-to-a-javascript-object