i need help, my mind stopped working here i donno how to pass this step i tried and searched and read many and i tested results in console but i always fail
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
const playNextSong = () => {
if (userData.currentSong === null) {
playSong(userData.songs[0].id);
}
if (userData.currentSong !== null) {
const nextSong = getNextSong().id
if(nextSong < allSongs.length) {
}
// if (userData.currentSong === allSongs.length - 1) {
// userData.currentSong = null;
// userData.songCurrentTime = 0;
// pauseSong()
// }
}
}
console.log(playSong(4))
// console.log(audio.title)
console.log(getNextSong())
nextButton.addEventListener('click', playNextSong())
// playNextSong()
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
here are my updated code
i execute depend on what failing tests i get on the screen
i passed it one by one till the last one
i think i made what it required but i can’t pass still