Learn Basic String and Array Methods by Building a Music Player - Step 55

Tell us what’s happening:

I am stuck with this question. The following is my code that will not pass:
const highlightCurrentSong = (playlistSongElements) => {document.querySelectorAll(“playlist-song”)};

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

const highlightCurrentSong = (playlistSongElements) => {document.querySelectorAll("playlist-song")};

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0

Challenge Information:

Learn Basic String and Array Methods by Building a Music Player - Step 55

the variable playlistSongElements should not be a function parameter but a constant variable you declare inside the function body and assign it document.querySelectorAll(".playlist-song"), also the selector is .playlist-song not playlist-song

Thank you this helped very much.

1 Like