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

Tell us what’s happening:

I just don’t know what to do here anymore. Please help me

Your code so far

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

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

  if (userData?.songs.length === 0) {
    const resetButton = document.createElement("button");
    const resetText = document.createTextNode("Reset Playlist");
    resetButton.id = ["reset"]["Reset playlist"];

  }

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

Challenge Information:

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

Hi @brianreyfuentesvarga

There are two parts to this step.

Here is the first one:

You should use resetButton.id to create an id attribute named "reset" for the resetButton .

Happy coding