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

Tell us what’s happening:

it says i should call the renderSongs function with sortSongs() but i’m am
resetButton.addEventListener(“click”, () => {
userData.songs = […allSongs];

});
renderSongs(sortSongs(userData.songs))

setPlayButtonAccessibleText()
resetButton.remove()

Your code so far

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

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

    resetButton.addEventListener("click", () => {
      userData.songs = [...allSongs];

    });
    renderSongs(sortSongs(userData.songs))
 setPlayButtonAccessibleText()
      resetButton.remove()
      
     

// User Editable Region
/* file: styles.css */

Your browser information:

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

Challenge Information:

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

The new code should run when reset is clicked. So start by moving the code here.

Edit: also note that the reason you should not give sortSongs any arguments is because it is not defined to need any parameters.