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

im not sure what they want to do : "Sorry, your code does not pass. You’re getting there.

You should use arrow syntax to pass in an empty callback into your event listener. Don’t forget you also need an empty pair of curly braces."

playButton.addEventListener("click", () => {
    playSong();
});

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Challenge Information:

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

Hey @cragHerk,

You’re a little bit ahead of where it wants you to be. It does specifically say that the callback needs to be empty:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.