Hey, sorry but I do not understand this step.
I have tried to add an eventListener to a "song " element That does not exist.
Ive done addEventListener(“click”, playSong(n))
Ive tried song.addEventListener(“click”, (n) => {playSong(n)})
Its saying that n is the id attribute of song.
Ive tried several more things and they are just me throwing things and hoping they stick really.
Am i to create a few variables beforehand and then run that?
Reading this feels like I skipped a step but I did 19 and that was fine.
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
songs.forEach((song) => {
//I reset the step
});
// 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/147.0.0.0 Safari/537.36
I am not sure if the second one is close but after reading and rereading the assignment its all I can think might be what its saying to do.
If it is close to the second one I feel the way it is written is more complicated than it needs to be.
Felt like I had an epiphany when I read it again and thought I understood it finally.
got it with a thanks.
I am unsure if its just me but I had a really hard time with the wording. Knowing the answer I see what it was saying but while working it out it was a genuine struggle to understand what was being asked.