mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
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:
+3
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user