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

Tell us what’s happening:

hi i just dont get it
pls someone can help me…?

Your code so far

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

/* file: styles.css */

/* file: script.js */
// User Editable Region




// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0

Challenge Information:

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

With everything set in place, call the pauseSong() , setPlayerDisplay() , highlightCurrentSong() , and setPlayButtonAccessibleText() functions to correctly update the player.

You simply call the four functions (no arguments required) inside the else condition here:

if (nextSongExists) {
      playNextSong();
    } else {
      userData.currentSong = null;
      userData.songCurrentTime = 0;  
// User Editable Region




// User Editable Region

    }
});

thanks mate

I managed to do it myself after that I read the request better
It made me a little foggy at first look :))

1 Like