Working through Step 28, trying to add a click event listener to the playButton element, then use arrow syntax to pass in a callback with an empty pair of curly braces.
Add a click event listener to the playButton element, then use arrow syntax to pass in a callback with an empty pair of curly braces.
This is the part that matters - the top paragraph doesn’t include the instructions, you’re right there at the right idea. The top paragraph makes mention of playSong, but it’s actually not to be included.
The playSong parameter you have probably isn’t what you think it is inside the handler. The event handler will be passed the event so in this case playSong inside your handler would be a PointerEvent object.
In any case, as said you do not want to add the playSong parameter.