Build a Music Player - Step 21

Tell us what’s happening:

My function should save the current time on songCurrentTime but it’s not passing for the test, why?

Your code so far

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

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

function pauseSong() {
  userData.songCurrentTime = audio.currentTime;
}

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15

Challenge Information:

Build a Music Player - Step 21

Hey there,

I came up with the same solution and it passed for me. Maybe try to reset the lesson and type everything again.

Happy Coding

Thanks I have passed using a chromium browser instead of safari.
On safari the code was not passing for both

const function = () => userData.songCurrentTime = audio.currentTime;

or

function pauseSong() {
   userData.songCurrentTime = audio.currentTime;
}