Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSaud ALQahtani
7,842 PointsInside the array, add an empty JavaScript object. This will hold our song.
it's so complicated... I need a clear answer ..HELP!!!
[{"name": {} }]
{
firstName: "Saud",
lastName: "ALQahtani"
}
2 Answers
andren
28,558 PointsJust like an empty array is just a set of square brackets []. An empty object is just a set of curly braces {}. So an empty object inside an array looks like this:
[{}]
Andrei Li
34,475 PointsIt's not working!!! Please, help. I have tried everything in all possible combinations.
Saud ALQahtani
7,842 PointsSaud ALQahtani
7,842 Pointsthank you..... this is very hopeful