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

Tell us what’s happening:

I cannot find where I do a mistake so please help me

Your code so far

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

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

const pauseSong = () => {
   userData?.songCurrentTime =audio.currentTime;
};

// User Editable Region
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36

Challenge Information:

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

What error message are you getting? The more you can tell us, the more we can help you.

1 Like

Welcome to the forum @lesterarjaymerino

The error message:

You should assign audio.currentTime to userData.songCurrentTime.

Note from the instructions:

Note: You should not use optional chaining for this step because userData.songCurrentTime will not be null or undefined at this point.

Happy coding

1 Like