Basic Javascript: Record Collection | General Question

Hello :slight_smile: I found myself getting stumped on this project for some reason. I resorted to the hints, and one of them reads:

To access the value of a key in this object, you will use records[id][prop].

I just need someone to make this make sense for me. Why do we need to use [id] and [prop]?

The ids represent different records (also objects). For example, if you reference records[2468], then you are referencing the following object:

    albumTitle: '1999',
    artist: 'Prince',
    tracks: ['1999', 'Little Red Corvette']

The addition of [prop] allows you to access a specific property within one of these objects. For example, records[2468]["artist"] represents the value Prince.

If you are still having trouble, I suggested reviewing this challenge and this challenge

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.