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 trialChase Prescott
10,109 PointsHelp! Inside the array, add an empty JavaScript object. This will hold our song.
Challenge Task 2 of 4
Inside the array, add an empty JavaScript object. This will hold our song.
Bummer! Try again; there seems to be a problem with your JSON! Error: 784: unexpected token at '["empty java"] '
This is what I have so far....... ["var empty"]
Somebody please assist me.
5 Answers
Shaun Wong
14,489 PointsI guess this worked for me, not sure if i understood the question right. but seems to work.
[
{
"title" : "test",
"artist": "test2",
"song" : ""
}
]
elk6
22,916 PointsHi Chase,
First you make an empty array, like this:
[]
Next, you add an empty object to it, like this:
[{}]
Sandeep Krishnan
9,730 Pointsor [ { } ]
Heba Hendy
7,786 Points[{}]
Raphel Banda
6,864 Pointsstep 2 continues from step 1
step 1= [] step 2={}(object) final answer [{}]
Shaun Wong
14,489 PointsShaun Wong
14,489 PointsOh oops seems like i accidentally did all step 3 and 4 as well.. lol