Basic JavaScript - Updating Object Properties

Tell us what’s happening:
Describe your issue in detail here.

Your code so far
i tried to answer and it did not work and even when i asked for a hint i litterlt copy pasted the answer and i still get the message: " // running tests You should not edit the

myDog

definition. // tests completed"

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

// Only change code below this line.

myDog.name = "Happy Coder"; // Solution

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Updating Object Properties

Link to the challenge:

Look closely at the hint you are getting:

“You should not edit the myDog definition.”

You changed some things in that code. I would restart the challenge to get the original code back and then only add the line below the comment, do not change anything above it.

Hi there. Your solution is correct. But somehow the object keys (like nane, legs, etc) got changed so they are not in quotations. I would reset the code and just put in the answer, not changing anything above that. I hope this helps :slightly_smiling_face:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.