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

Tell us what’s happening:

Whats wrong with this answer? I tried the "" and now without, and searched in the forum, funny enough there seems to only be one question on this. Was there a change in the number of lessons that makes some questions relate to another lesson. just curious. And thanks for all the amazing help!

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/131.0.0.0 Safari/537.36

Challenge Information:

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

Hi there!
Inside the function, your assignment is missing a constant declaration keyword.

The instructions:
and assign to a playlistSongElements constant.
Edit: Also add quote marks around the playlist-song and a dot in front of it

I thought you don’t need to add . in JavaScript?

In JavaScript DOM manipulation, .class is part of the CSS class selector syntax used with methods like querySelector or querySelectorAll to select elements based on their class attribute.
document.querySelector('.class'): Selects the first element in the DOM that matches the specified class.
document.querySelectorAll('.class'): Selects all elements in the DOM that match the specified class.

querySelector and querySelectorAll take a string with a css selector. How do you select a class in css?

thank you for your contribution