try to break down in multiple steps what you need to do
Complete your playNextSong function so that can play the next song in the playlist. 2. If the current song is the last one, 3. set userData.currentSong to null , 2. userData.songCurrentTime to zero 3. and call the pauseSong function
there are 5 statements here:
Complete your playNextSong function so that can play the next song in the playlist.
If the current song is the last one,
set userData.currentSong to null ,
userData.songCurrentTime to zero
and call the pauseSong function
Try one by one, and see where you get stuck
For this
check what playSong takes as argument. Is it a song object?