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 trial

JavaScript

Help! 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
Shaun Wong
14,489 Points

I guess this worked for me, not sure if i understood the question right. but seems to work.

[
  {
      "title" : "test",
      "artist": "test2",
      "song" : ""
  }
]
Shaun Wong
Shaun Wong
14,489 Points

Oh oops seems like i accidentally did all step 3 and 4 as well.. lol

Hi Chase,

First you make an empty array, like this:

[]

Next, you add an empty object to it, like this:

[{}]

[{}]

step 2 continues from step 1

step 1= [] step 2={}(object) final answer [{}]