Tell us what’s happening:
I am receiving " you should use const to create a highlightCurrentSong function." However it looks correct to me. This is what I wrote,
const hightlightCurrentSong = () => {
const playlistSongElements = document.querySelectorAll(“.playlist-song”);
}
Your code so far
<!-- file: index.html -->
/* file: script.js */
// User Editable Region
const hightlightCurrentSong = () => {
const playlistSongElements = document.querySelectorAll(".playlist-song");
}
// User Editable Region
/* file: styles.css */
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Challenge Information:
Learn Basic String and Array Methods by Building a Music Player - Step 61