# Learn Basic String and Array Methods by Building a Music Player - Step 25 is having and issue

**URL:** <https://forum.freecodecamp.org/t/learn-basic-string-and-array-methods-by-building-a-music-player-step-25-is-having-and-issue/659885>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [December 31, 2023, 3:43am UTC](https://forum.freecodecamp.org/t/learn-basic-string-and-array-methods-by-building-a-music-player-step-25-is-having-and-issue/659885 "2023-12-31T03:43:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chukason29](https://avatars.discourse-cdn.com/v4/letter/c/e56c9b/32.png) [@Chukason29](https://forum.freecodecamp.org/u/Chukason29)\
**Post date:** [December 31, 2023, 3:43am UTC](https://forum.freecodecamp.org/t/learn-basic-string-and-array-methods-by-building-a-music-player-step-25-is-having-and-issue/659885/1 "2023-12-31T03:43:39Z")

</div>

The test for step 25 of the above mentioned project seem to fail. I have placed the else {} block in the right place yet it fails

---

<div class="post-metadata">

**Author:** ![strawHat121](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/strawhat121/32/381780_2.png) [@strawHat121](https://forum.freecodecamp.org/u/strawHat121)\
**Post date:** [December 31, 2023, 4:26am UTC](https://forum.freecodecamp.org/t/learn-basic-string-and-array-methods-by-building-a-music-player-step-25-is-having-and-issue/659885/2 "2023-12-31T04:26:15Z")

</div>

Hi @Chukason29

I gave it a try myself and it worked for me. Can you provide your code snippet so that we can debug what is going wrong for you ?

---

<div class="post-metadata">

**Author:** ![Chukason29](https://avatars.discourse-cdn.com/v4/letter/c/e56c9b/32.png) [@Chukason29](https://forum.freecodecamp.org/u/Chukason29)\
**Post date:** [December 31, 2023, 1:15pm UTC](https://forum.freecodecamp.org/t/learn-basic-string-and-array-methods-by-building-a-music-player-step-25-is-having-and-issue/659885/3 "2023-12-31T13:15:06Z")

</div>

![FCCimg](https://global.discourse-cdn.com/freecodecamp/original/4X/5/f/1/5f1d240832e3ad2a24775626546e809cd203d9f8.jpeg)

---

<div class="post-metadata">

**Author:** ![strawHat121](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/strawhat121/32/381780_2.png) [@strawHat121](https://forum.freecodecamp.org/u/strawHat121)\
**Post date:** [December 31, 2023, 1:35pm UTC](https://forum.freecodecamp.org/t/learn-basic-string-and-array-methods-by-building-a-music-player-step-25-is-having-and-issue/659885/4 "2023-12-31T13:35:44Z")

</div>

Hi @Chukason29

While you have added the else in the correct place, inside the else you also have to set the `currentTime` property of the `audio` object to the value stored in `userData.songCurrentTime` as mentioned in the instructions.

 ![Screenshot 2023-12-31 at 7.04.11 PM](https://global.discourse-cdn.com/freecodecamp/original/4X/b/3/3/b33fa1d9681c5d7b904d0b982046d8f7259da045.png)

Once you have done that the test will surely pass.

---

<div class="post-metadata">

**Author:** ![Chukason29](https://avatars.discourse-cdn.com/v4/letter/c/e56c9b/32.png) [@Chukason29](https://forum.freecodecamp.org/u/Chukason29)\
**Post date:** [December 31, 2023, 3:54pm UTC](https://forum.freecodecamp.org/t/learn-basic-string-and-array-methods-by-building-a-music-player-step-25-is-having-and-issue/659885/5 "2023-12-31T15:54:17Z")

</div>

Hello @strawHat121 … I’ve done that, still not working

 ![FCCimg2](https://global.discourse-cdn.com/freecodecamp/original/4X/4/c/b/4cbd3796a2ffea31bb020565d82ff32dfa05ddfd.jpeg)

---

<div class="post-metadata">

**Author:** ![strawHat121](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/strawhat121/32/381780_2.png) [@strawHat121](https://forum.freecodecamp.org/u/strawHat121)\
**Post date:** [December 31, 2023, 4:35pm UTC](https://forum.freecodecamp.org/t/learn-basic-string-and-array-methods-by-building-a-music-player-step-25-is-having-and-issue/659885/6 "2023-12-31T16:35:39Z")

</div>

Hi.

It seems like the test also checks for coding practices apart from the solution.

So if you give a space between else and {, then it will work.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [July 1, 2024, 4:35am UTC](https://forum.freecodecamp.org/t/learn-basic-string-and-array-methods-by-building-a-music-player-step-25-is-having-and-issue/659885/7 "2024-07-01T04:35:59Z")

</div>

Closed on July 1, 2024, 4:35am UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
