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

Tell us what’s happening:

Hi there, Please help me with the step as I’m stuck with this one.

Inside the backticks, create an li element with an id attribute of song-${song.id} and a class attribute of playlist-song.

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

return `<li id=song-${song.id} class=playlist-song>`;

// User Editable Region

Your browser information:

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

Challenge Information:

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

Hi there,

  1. You missed the closing tag of li element
  2. The value of an attribute should be put inside a double-quote ("")

For example:

attribute="value"

thanks! that solved the issue.

1 Like