fix(curriculum): updated description of step 40 of music player (#53783)

Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
This commit is contained in:
shreya
2024-02-19 17:31:20 +07:00
committed by GitHub
co-authored by Krzysztof G.
parent 6849b096b4
commit 683b489094
@@ -7,10 +7,12 @@ dashedName: step-40
# --description--
You need to hook up the `pauseSong` function to an event listener to make it work.
Now it is time to test out the pause button.
Add a `click` event listener to the `pauseButton` element, then pass in `pauseSong` as the second argument of the 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 pause button. You should see that everything is working as expected.
# --hints--
You should call the `addEventListener()` method on your `pauseButton` variable.