The walkthrough used badges and tour cities. Now build a separate playlist tool. Keep durations in a Map so a title can find its duration, and keep artists in a Set so repeats disappear.
A map retrieves a duration by key while a set removes duplicate categories:
const readings = new Map([["Poem", 4]]);
const genres = new Set(["spoken", "spoken", "music"]);
console.log(readings.get("Poem"), genres.size); // 4 2
songDurations Map with the key-value entries "Orbit" → 203 and "Glow" → 187.featuredArtists Set containing "Nova", "Kai", and a second "Nova" entry.playlistSummary(durations, artists) that returns the duration for "Orbit", a pipe, and the number of unique artists.console.log(): "203 | 2".Create a Map with nested [key, value] pairs.
A Set automatically ignores a repeated value.