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 trialIbikunle Senjobi
3,284 PointsInside the array, add an empty JavaScript object. This will hold our song. i find it hard to solve this. i need help
Q-Inside the array, add an empty JavaScript object. This will hold our song. I have been on this for a long time and as simple as it may sound i still couldn't get it. please help
[{"title": "Shakira","artist":"Wakawaka"}]
[{","}]
2 Answers
seth aruby
10,111 PointsHi, Ibikunle. All it's asking for here is for you to just add an empty object that will hold the song. So basically you have an array with one empty object, like so:
[
{
}
]
Steven Parker
231,275 PointsYour top line will pass all 4 tasks of the challenge.. The extra array on the second line is creating a syntax error.
However, the array should be built up in stages; and if you're still on the second task you only need a structure like what seth has suggested.