mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
fix(curriculum): update music player step 12 description (#53746)
This commit is contained in:
+3
-3
@@ -7,11 +7,11 @@ dashedName: step-12
|
||||
|
||||
# --description--
|
||||
|
||||
Later when you call the `renderSongs` function, you'll pass in the `songs` array inside the `userData` object. When you do, the function will loop through the array and build HTML for all the songs.
|
||||
When the songs are displayed on the page, it should show the title, artist, duration of each song and a delete button.
|
||||
|
||||
To do this, you'll use the `map()` method, which you'll learn more about in the following steps.
|
||||
In the next few steps, you will learn how to add new HTML for each song using the <dfn>map()</dfn> method. This method will be explained in more detail in the next step.
|
||||
|
||||
For now, use `const` to declare a variable named `songsHTML` and assign it `array.map()`.
|
||||
Start by using `const` to declare a variable named `songsHTML` and assign it `array.map()`.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user