Basic JavaScript - Build JavaScript Objects

Tell us what’s happening:
I seem to be having quite some difficulty with getting past this particular exercise. I looked at both the video hint and forum hint but I am still not sure what I am doing incorrectly. Can someone please point me in the right direction?

Your code so far

const myDog = {
  // Only change code below this line
const myDog = {
  name: "Sam",
  legs: 4,
  tails: 1,
  friends: ["Tom", "Jerry"]
};
  // Only change code above this line
};

Your browser information:

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

Challenge: Basic JavaScript - Build JavaScript Objects

Link to the challenge:

You’ve declared your object twice.

I ran this code and it works fine but you need to cut the top and bottom line to do so.

I see. Thank you so much for your help!

Thank you so much for your help!

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