Hi everyone!!! so i’ve been stuck on this step for the last hour, i cant seem to figure whats wrong with my code, please assist. Thanks
Step 30
Add an else
block to handle the current song’s position in the playlist.
Within the else
block, set the currentTime
property of the audio
object to the value stored in userData?.songCurrentTime
.
MY CODE SO FAR:
if (userData?.currentSong === null || userData?.currentSong.id !== song.id) {
audio.currentTime = 0;
} else {
audio.currentTime = userData?.songCurrentTime;
}
Hello, copy the link to the challenge so it can be checked.
Thanks for your reply, i did as you said, hope i shared the link correctly
Well it came as the same page but I’m already there.
1 Like
I ran your code it passed try to reset your editor and make sure all the prior challenges are complete. If that doesn’t work just keep on going or you can submit an issue with support.
Thanks again for your assistance its much appreciated, i will try the mentioned solutions
1 Like
system
Closed
August 23, 2024, 4:29pm
9
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.