I’ll assume that you’re confused about what to do.
If you have an array of objects:
var myPets = [ // open array of objects
{ // start of first object
"name" : "Sparky",
"species" : "dog",
"food" : [
"meat",
"dog food",
"bones"
]
} // end of first object
]; // end of array of objects
Here is an array of objects with only one object. If you want to add more, you need to separate each object with a comma:
var myPets = [ // open array of objects
{ // start of first object
"name" : "Sparky",
"species" : "dog",
"food" : [
"meat",
"dog food",
"bones"
]
}, // end of first object
{ // start of second object
"name" : "Goldie",
"species" : "fish",
"food" : [
"fish food"
]
} // end of second object
]; // end of array of objects
You could chain on as many objects as you want, adding them to your array of objects.
Hi @rgmorales11, based on the challenge requirements, we really need to use an underscore because this is a fixed rule. If not, then you will receive a code error:
In my own opinion, I never tried to see the difference between having a space or underscore but for best practice, coders use underscore. See for your self here:
@gadalaavinash please specify your question when creating a topic. It helps everyone stay on the same page, and it increases your chance of getting a great answer.