Step 79
const shuffle = () => {
userData?.songs.sort(() => Math.random() - 0.5);
userData.currentSong = null;
userData.songCurrentTime = 0;
};
renderSongs(userData.songs);
pauseSong();
setPlayerDisplay();
setPlayButtonAccessibleText();
Sorry, your code does not pass. Keep trying.
- You should call the
renderSongs
function with userData?.songs
.
Teller
2
Welcome to the forum @Cristy81
Place the curly brace below the rest of the code.
At the moment it is outside the body of the function.
Happy coding
Sorry, I solved it:
Submit and go to next challenge (Ctrl + Enter)
Congratulations, your code passes. Submit your code to continue.
“You rock!”
80% complete
Learn Basic String and Array Methods by Building a Music Player
1 Like