Build a Music Player - Step 35

Tell us what’s happening:

Hi, is there a bug on this workshop? I am doing just what is requested and I can’t get through this step.

Your code so far

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

/* file: styles.css */

/* file: script.js */
// User Editable Region
const playPreviousSong = () => {
  let previous = getPreviousSong();
  if(userData.currentSong === null){
    return;
  }
  if(previous === undefined){
    playSong(userData.songs[0].id);
  } else {
    playSong(getPreviousSong().id);
  }
}
// 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/149.0.0.0 Safari/537.36

Challenge Information:

Build a Music Player - Step 35

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-music-player/675340b809683f45cae96539.md at main · freeCodeCamp/freeCodeCamp · GitHub

Hi @PilotCoding2

Try removing the curly braces.

Happy coding