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

Tell us what’s happening:

I am getting this error: " Your opening li tag should have the id song-${song.id} as its first attribute and value."

If I delete playlist-song it shows that all I am missing is playlist-song but when readded it says the song-${song.id} portions is wrong again.

### Your code so far

<li id="song-${song.id} playlist-song"></li>

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 14

Nevermind I misread the instructions! sorry

1 Like

I had a similar problem, can you let me know what I did wrong
return <li id= "song-${song.id}" class= "playlist-song-${playlist.song}" ></li>

Hello @pastasauce !

Please create your own post using the help to post all code, along with your question, and any error message?

This will allow for direct and accurate guidance to resolve the problem with your code.

Happy coding!

1 Like

Hi, so where’s the problem ? I had the same problem w/ both id being the first and now class being the second…where’s the solution ? thx