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

Tell us what’s happening:

Task is to perfect reset button. What is wrong?

Your code so far

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

/* file: styles.css */

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

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

    });

// 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/132.0.0.0 Safari/537.36 Edg/132.0.0.0

Challenge Information:

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

Hi. Look at the syntax for the last one again. You need to call the remove() method on the resetButton variable. You have used the syntax for calling a function with an argument.