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

Tell us what’s happening:

Actually, I am not getting my mistake what mistake I am making can anyone help me out in this.

Error shows that

Sorry, your code does not pass. Hang in there.

You should use the innerHTML property to add songsHTML to the playlistSongs.

Your code so far

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

/* file: styles.css */

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

 document.getElementById('playlistSongs').innerHTML = songsHTML;

// 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/127.0.0.0 Safari/537.36

Challenge Information:

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

There is no element with an id of playlistSongs. Instead, it’s a constant you created at line 1.

const playlistSongs = document.getElementById("playlist-songs");

Use it directly without document.getElementById().