Https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-basic-string-and-array-methods-by-building-a-music-player/step-17

<button class="playlist-song-delete" area-label="Delete ${song.title}"><svg width="20" height="20" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="8" fill="#4d4d62"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.32587 5.18571C5.7107 4.90301 6.28333 4.94814 6.60485 5.28651L8 6.75478L9.39515 5.28651C9.71667 4.94814 10.2893 4.90301 10.6741 5.18571C11.059 5.4684 11.1103 5.97188 10.7888 6.31026L9.1832 7.99999L10.7888 9.68974C11.1103 10.0281 11.059 10.5316 10.6741 10.8143C10.2893 11.097 9.71667 11.0519 9.39515 10.7135L8 9.24521L6.60485 10.7135C6.28333 11.0519 5.7107 11.097 5.32587 10.8143C4.94102 10.5316 4.88969 10.0281 5.21121 9.68974L6.8168 7.99999L5.21122 6.31026C4.8897 5.97188 4.94102 5.4684 5.32587 5.18571Z" fill="white"/></svg></button>

I can’t get past step 17 of the “Learn basic string and array methods by Building a Music player” tutorial. When I try to submit my code I get the message “Sorry, your code does not pass. Keep trying.
Your button element should have an aria-label attribute with the value Delete ${song.title} as its second attribute and value.” which is ok for me.

Hi there. In the future please use the “Ask for help” button provided in the challenge. It would make things so much easier for everyone involved.

I had already inserted area-label=“Delete ${song.title}” in my code before coming to the forum. The code was not passing and continues to fail FreeCodeCamp tests. Regarding the button, it wasn’t appearing and continues not to appear for me.

Are you absolutely certain the name of the attribute is right?

Yea! I even copied and pasted the code snippet you suggested to make sure there was nothing wrong, but it didn’t work.
Look:

<button class="playlist-song-delete" area-label="Delete ${song.title}"></button>

You can’t use " when doing string interpolation like that

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