Tell us what’s happening:
From what I understand, to use the querySelectorAll() method,
I insert the CSS selector of the first element or attribute . In this step they ask to get the element .playlist-song, however the only element in the HTML document with this name is an id attribute in a div element. I thought the correct code would be
document.querySelectorAll(#playlist-song)
instead the accepted answer for the lesson is
document.querySelectorAll(.playlist-song )
Why?
Your code so far
<!-- file: index.html -->
```document.querySelectorAll(#playlist-song) ```
```css
/* file: styles.css */
/* file: script.js */
// User Editable Region
// 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