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

Tell us what’s happening:

Your code so far


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.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

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

Challenge Information:

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

 const songsHTML = songs.map((song) => {


The code doesn’t work, the instructions are difficult to understand, what’s wrong?

why the array on which map is called changed name? Do you even have a songs array here?

The song and I don’t know where it came from, it’s nowhere in JavaScript, this task is not clear at all

reset the step and add only the callback function without changing other things

I don’t understand where she got this function from? callback function? where is it? how to write this?

const songsHTML = array.map(song);

the callback function is the function passed to map that you have to write this step. reset the step and write only inside the arguments for map

const songsHTML = array.map(song);
this does not work

you need to write a whole function using arrow syntax

const songsHTML = array.map(song)=>{

this doesn’t work either

the whole function needs to go inside the round parenthesis, that’s not correct syntax