I don.t understand this this challenge question can someone Please it interpret it to me
This is the challenge question : Add songsHTML to playlistSongs , by using the innerHTML property.
### Your code so far
songsHTML + playlistSongs.innerHTML;
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Challenge Information:
Learn Basic String and Array Methods by Building a Music Player - Step 19
We have blurred this solution (with [spoiler][/spoiler] tags) so that users who have not completed this challenge can read the discussion in this thread without giving away the solution.
Add songsHTML to playlistSongs , by using the innerHTML property.
I would probably prefer
Assign songsHTML to the innerHTML property of the playlistSongs element.
My question is COMPLETELY different than this for Step 19!!! It’s as follows:
Step 19
The map() method is used to iterate through an array and return a new array. It’s helpful when you want to create a new array based on the values of an existing array. For example:
const numbers = [1, 2, 3];
const doubledNumbers = numbers.map((number) => number * 2); // doubledNumbers will be [2, 4, 6]
Notice that the map() method takes a function as an argument. This is called a callback function, which is a function that is passed to another function as an argument. In the example above, the callback function is (number) => number * 2, and it’s run on each element in the numbers array. The map() method then returns a new array with the results.
Pass in a callback function to the map() method. The callback function should take song as a parameter, use the arrow function syntax, and have an empty body.
Please create your own topic to the challenge step by pressing help button below your challenge editor, it’s appears after attempting Check your code button three times.