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

Tell us what’s happening:

Not really sure where the problem lies. The console said:
You should use the play()method on the audio variable.
I try to call variable audio on play function, but that doesn’t seem to be the solution.

Any tips or advices are greatly appreciated.
Thanks in advance!

Your code so far

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

/* file: styles.css */

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

playButton.classList.add("playing");
audio(play());

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

Challenge Information:

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

Use dot notation to call the method.

1 Like