Basic JavaScript - Build JavaScript Objects

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

Your code so far

const myDog = {
  // Only change code below this line

var myDog = {
 
 "name": "Suada",
  "legs": 3,
  "tails": 2,
  "friends": []
}

  // Only change code above this line
};

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Build JavaScript Objects

Link to the challenge:

:balloon: Hi, welcome to the forum!
We see you have posted some code but did you have a question?

yeah what did i di wrong in this code please! it’s not working for me and i can’t see something that i did wrong

do you see this first part here?
This is the part that sets up the ‘myDog’ object.
So you should put the name/legs/tails inside this one, not create another myDog inside it

1 Like

did it and works now, thank you so much!

1 Like

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