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

Tell us what’s happening:

Hi

Don’t know what I am missing here

Thanks
Iskren

Your code so far

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

/* file: styles.css */

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

const nextButton=addEventListener("click", playNextSong);

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15

Challenge Information:

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

Hi there!

You have declared a constant variable nextButton and assigned an event listener callback function with the value click and playNextSong to it.
Edit: the challenge instructions is asking you:
Add a “click” event listener to the nextButton element, then pass in playNextSong as the second argument of your event listener. This is the function the event listener will run.

I don’t get it sorry

Here’s a link you may find helpful:

1 Like