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

Tell us what’s happening:

I’m having trouble with this step.

I’ve tried all sorts of combinations.

Your code so far

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

/* file: styles.css */

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

const highlightCurrentSong = () => {
  const playlistSongElements = 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/124.0.0.0 Safari/537.36

Challenge Information:

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

Hi @Troy19792024

Your code is missing document.
Also the class needs to go between the parentheses.

Happy coding

I’ve followed your instructions (or thought i did):

const playlistSongElements = document.querySelectorAll('playlist-song'); 

still not working though

You have using a class value here in the above code. But you have missing something? How to use a class value for css selector?

thank you - i passed the step

Your welcome.Keep it up, happy Coding.

1 Like