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

Tell us what’s happening:

here is the issue: Step 71
To ensure the player’s display updates whenever a new song begins playing, call the setPlayerDisplay() function within the playSong() function.

Now you should see the song title and the artist show up in the display.

here is my code: playSong(setPlayerDisplay());

I went on the forums and watched the youtube video that passed with the same answer as mine but mine won’t pass for some reason. I read on another forum that the instructions were wrong. What am I doing?

Your code so far

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

/* file: styles.css */

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

  playSong(setPlayerDisplay());

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36

Challenge Information:

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

Welcome to the forum!

Hint: You are currently trying to call the function within itself aka a recursive function. You don’t need to in this exercise.

Hint two: You have another function called within playSong( ) right above the user input.

Best Regards

Oh thank you so much for the hints! I understand it now and it passed.