Learn Basic String and Array Methods by Building a Music Player - Step 40

Tell us what’s happening:

The challenge question asks ’ Assign song to the currentSong property on the userData object.’ My code does not pass and i believe I have the right answer.

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

    audio.currentTime = userData?.songCurrentTime;
    userData.currentSong = song;

// 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/124.0.0.0 Safari/537.36

Challenge Information:

Learn Basic String and Array Methods by Building a Music Player - Step 40

so sorry but i figured out the problem. silly “}” bracket was missing. i apologize for wasting your time!

Welcome to the forum!

Great you have found the solution and you are never wasting our time with your questions.

Developers of all levels are fighting with syntax and the one missing dot or bracket, so no worries.