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

Tell us what’s happening:

I am inputting this but it keeps saying my code isn’t passing:

resetButton.id = 'reset-button';
resetButton.arialabel = 'Reset Playlist';

I think the previous step 90 had to do with comparison statements, so I couldn’t find much when it came to this issue.

Your code so far

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

/* file: styles.css */

/* 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.arialabel = "Reset playlist";

  }

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

Challenge Information:

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

element.ariaLabel would set an aria-label attribute

You’re not exactly matching the required attribute name.

2 Likes

Hilarious how cap sensitive this mistake was. Thank you!

1 Like