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

Tell us what’s happening:

I tried writing this last code…but can’t find what I did wrong.

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";
    resetButton.setAttribute("aria-label");
  

  }

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

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0

Challenge Information:

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

Have a look at the example again for setting the aria-label.

" For example, element.id would set an id attribute, and element.ariaLabel would set an aria-label attribute. Both of them accept their values as a string."

oh dear I finally see it…that was dumb…Thank you so much

1 Like