Hello @mbas, from what I read, you were asked to create currentSongIndex and nextSongExists alone and in the audio event listener. These are the only things required to pass this step. The if statement is making your test fail.
Hi @mbas !
The instructions is asking you:
Retrieve the current song index by calling the getCurrentSongIndex() function, and save it in a currentSongIndex constant.
After that, create a nextSongExists constant that contains the boolean value true or false depending on if the next song exists.
You need to add the instructed code values within eventListener()s call back function’s body.
Also you need to write the second code line for nextSongExists using ternary operator.
To check if nextSongExists. if it is, add true if not add false.
Reset your challenge step and try again your code within the event listener call back function.