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

Tell us what’s happening:

im pretty sure whats wrong is i have a typo in my code but ive tried everything i even went to the next assignment a copied that code underneath mine it matched up perfectly i dont understand what could be wrong

Your code so far

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

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

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


// User Editable Region
/* file: styles.css */

Your browser information:

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

Challenge Information:

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

as a last stich effort i erased my code a copied the code from the next assignment it didnt pass could this mean that the step is broken

Hi @ryanstruckus

Please place the query selector on the same as the code above it.

Happy coding

so im confused do you mean there supposed to be a querry selector right above this line of code because i cant see it

The entire code needs to go on the same line. At the moment there is a page break before the query selector.

it wont all fit on one line i can get up to the all and then i have to put the (“playlist-song”); below it

The code will wrap in the editor. Do not press the enter key to start a new line.

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

like this

Hi there!

Add the closing curly } brace in the end, before the semicolon.

i got this in the hint box You should use the querySelectorAll() method to select the .playlist-song element and assign it to the playlistSongElements constant.

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

you have a character in this selector that is missing in this: