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

Tell us what’s happening:

It seems I have a different question for this step based on the responses given to others.

This is my question:
Step 55
Access the userData?.currentSong?.title and userData?.currentSong?.artist properties and assign them to a currentTitle and currentArtist variables respectively.

I read the MDN and one option that seems to fit bet here based on how the question is written is to assign the variable to the property via an Alias. Can anyone provide additional guidance

Your code so far

const setPlayerDisplay = () => {
  const playingSong = document.getElementById("player-song-title");
  const songArtist = document.getElementById("player-song-artist");
  const {userData?.currentSong?.title: currentTitle} = playingSong;
  const {userData?.currentSong?.title: currentArtist} = songArtist;

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/15.6.1 Safari/605.1.15

Challenge Information:

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

I figured it out:

MOD EDIT SOLUTION REMOVED

It is great that you solved the challenge, but please don’t post your full working solution.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.