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

Tell us what’s happening:

What’s wrong?
In earlier version of curriculum, I was able to see logs in console now it is not showing any logs.

Your code so far

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.

return `<li id=song-${song.id} class=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

It’s as I suspected. The tests want you to wrap the attribute values in quotes (single or double).

Do you technically need quotes here? No, since you know that the id is never going to have a space or any of the other handful of characters that would require quotes, and you know that playlist-song doesn’t require quotes either. This is just the test enforcing quotes. To be safe, I would recommend that you always use quotes around attribute values to make the tests happy :slightly_smiling_face:

1 Like

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