Build a Music Player - Step 22

Tell us what’s happening:

im not sure where i went wrong , i think im correct , i even checked the later part of the workshop and i dont see the issue

Your code so far

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

/* file: styles.css */

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

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


// 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/138.0.0.0 Safari/537.36 OPR/122.0.0.0 (Edition std-2)

Challenge Information:

Build a Music Player - Step 22

Part of the function has already been written in the seed code for this step. You are duplicating those lines of code.