fix(curriculum): improve description in step 47 of music player (#53738)

This commit is contained in:
Alejandro Pla
2024-02-15 12:10:43 +01:00
committed by GitHub
parent 20af61c6d1
commit 743fc6831f
@@ -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.