Tell us what’s happening:
I’ve been stuck on this step for awhile and could you use some help and assistance I believed that I created the arrow function called getCurrentSongIndex. If I’ve made an error with the syntax or character placement could someone enlighten me.
Your code so far
WARNING
The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.
You will need to take an additional step here so the code you wrote presents in an easy to read format.
Please copy/paste all the editor code showing in the challenge from where you just linked.
Before you start working on playing the next and previous song, you need to get the index of each song in the songs property of userData.
Start by creating an arrow function called getCurrentSongIndex.
**const getCurrentSongIndex = () => {**
** return userData?.songs**
**}**
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Challenge Information:
Learn Basic String and Array Methods by Building a Music Player - Step 44