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

Tell us what’s happening:

este es mi codigo
const playPreviousSong = () => {
if (userData?.currentSong === null) {
return exit
} else {
const currentSongIndex = getCurrentSongIndex()
}
};

y este es el error :

Your if statement should have an else block.
You should call getCurrentSongIndex and assign it to currentSongIndex inside the else block of your if statement.

Your code so far

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

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

const playPreviousSong = () => {
    if (userData?.currentSong === null) {
      return exit
    } else { 
      const currentSongIndex = getCurrentSongIndex()
    }
};

y este es el error 
Your if statement should have an else block.
You should call getCurrentSongIndex and assign it to currentSongIndex inside the else block of your if statement.

// User Editable Region
/* file: styles.css */

Your browser information:

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

Challenge Information:

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

Holla, uso return solamente.