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

i confuse. because i need to return backticks and inside the backtick i need to put li tags. i got an error from this.

my code so far:

 const songsHTML = array.map((song)=> {
    return "<li  id="song-${song.id}" class=" playlist-song"></li>";

  })
};

You need to use back ticks to create a string that you will return.

1 Like

thanks a lot. my mistake to confuse between string and backticks.

2 Likes