mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
fix(curriculum): improve description in step 47 of music player (#53738)
This commit is contained in:
+3
-1
@@ -7,10 +7,12 @@ dashedName: step-47
|
||||
|
||||
# --description--
|
||||
|
||||
It's time to hook up the `playNextSong` function to an event listener.
|
||||
Now it is time to test out the `playNextSong` function.
|
||||
|
||||
Add a `click` event listener to the `nextButton` element, then pass in `playNextSong` as the second argument of your event listener. This is the function the event listener will run.
|
||||
|
||||
Test out your app by first clicking on the play button followed by the next button. You should see that everything is working as expected.
|
||||
|
||||
# --hints--
|
||||
|
||||
You should call the `addEventListener()` method on your `nextButton` variable.
|
||||
|
||||
Reference in New Issue
Block a user