Tell us what’s happening:
it says i should call the renderSongs function with sortSongs() but i’m am
resetButton.addEventListener(“click”, () => {
userData.songs = […allSongs];
});
renderSongs(sortSongs(userData.songs))
setPlayButtonAccessibleText()
resetButton.remove()
Your code so far
<!-- file: index.html -->
/* file: script.js */
// User Editable Region
resetButton.addEventListener("click", () => {
userData.songs = [...allSongs];
});
renderSongs(sortSongs(userData.songs))
setPlayButtonAccessibleText()
resetButton.remove()
// 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/128.0.0.0 Safari/537.36
Challenge Information:
Learn Basic String and Array Methods by Building a Music Player - Step 94