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

Tell us what’s happening:

Your code so far

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

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

  }

Your browser information:

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

Challenge Information:

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

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

its is asking me to do this Set the id attribute of resetButton to reset and its aria-label attribute to Reset playlist

reset the step, these are not to be changed

The instructions tell you:

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.

And then

Set the id attribute of resetButton to reset and its aria-label attribute to Reset playlist .

So you need to use element.id and element.ariaLabel where element is resetButton. You need to assign the requested values to these.

1 Like

-below the last const you create do as you did but put = in front of the resetButton.
-do the same for the next line with the other element the exercise asks