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

Tell us what’s happening:

Hi, Was having some trouble with this one and I believe it is a simple mistake, but i cannot see where I went wrong. Cant figure out the syntax order for some reason. thank you for your time if you answer!

Your code so far

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

/* file: styles.css */

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

const pauseSong = () => {
  userData.songCurrentTime = audio.currentTime;
classList.remove().playButton;
audio.pause();
};

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 OPR/112.0.0.0

Challenge Information:

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

1 Like

Earlier in the code there is an example of the add function. Remove should be similar? Around line 99…

1 Like

Thank you, Stupid mistake I realized the syntax right away thank you kindly.

Hello, playButton is the variable and should be moved infront of classList and a param in the parenthese as well.

1 Like

Thank you , I was overthinking and tired should have walked away it was so simple lol.

1 Like