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

Tell us what’s happening:

Hey Guys,

I am stuck at step 60.

Can someone please help point out the error in my code!

The instruction says:" Access the userData?.currentSong?.title and userData?.currentSong?.artist properties and assign them to a currentTitle and currentArtist variables respectively."

Your kind gesture will highly be Appreciated through my journey!

Your code so far

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

const currentTitle = document.getElementById("userData?.currentSong?.title");
  const currentArtist = document.getElementById("userData?.currentSong?.artist");

Your browser information:

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

Challenge Information:

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

document.getElementById should not be in your answer at all.

Remember that the document.getElementById method is used to access an HTML document with that given id.
There is no element with the id of

or

Another way to phrase the directions would be this

Assign userData?.currentSong?.title to currentTitle

Assign userData?.currentSong?.artist to currentArtist

once you fix those issues then the test will pass

Hey Queen Oboe,
Thanks so much for the hint. Much appreciated!