Question · Vibe coding with Claude Code course · Module 11: Spotify clone
Added date on a playlist
Why is addedAt in the PlaylistTrack type and not in the Track type?
Answer options
- Because Track is read-only and accepts no new fields
- Because the same shanty can land on two playlists on different days, so the date belongs to its place on the list
- Because addedAt is the release date of the track, not the date it was added
- Because TypeScript does not allow dates in the Track type
You can check the correct answer by solving this task in the CodeWorlds game.