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

Tell us what’s happening:

Your code so far

<button class=“playlist-song-info” onclick="playSong(${song.id}) value=“playSong(${song.id})”>
${song.title}
${song.artist}
${song.duration}

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

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

Challenge Information:

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

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

i have added an onclick playSong(${song.id}) but its telling me to that it should be the second attribute and the value of the button am still confused on how to do that

i have finally realised my mistake an d made it right thanks a lot @JeremyLT for always your support it inspires me alot

2 Likes