From 683b489094f0860e32914ca073b3f47e45943d7a Mon Sep 17 00:00:00 2001 From: shreya <70858293+alt-shreya@users.noreply.github.com> Date: Mon, 19 Feb 2024 16:01:20 +0530 Subject: [PATCH] fix(curriculum): updated description of step 40 of music player (#53783) Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com> --- .../6552303a9a78704f8ff072e9.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-string-and-array-methods-by-building-a-music-player/6552303a9a78704f8ff072e9.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-string-and-array-methods-by-building-a-music-player/6552303a9a78704f8ff072e9.md index 14521c51612..41945663eb5 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-string-and-array-methods-by-building-a-music-player/6552303a9a78704f8ff072e9.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-string-and-array-methods-by-building-a-music-player/6552303a9a78704f8ff072e9.md @@ -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.