# Вивчіть базове алгоритмічне мислення, створивши сортувальник чисел - Step 4

**URL:** <https://forum.freecodecamp.org/t/step-4/734500>\
**Category:** General\
**Tags:** українська\
**Created:** [February 11, 2025, 9:23pm UTC](https://forum.freecodecamp.org/t/step-4/734500 "2025-02-11T21:23:42Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![sushworkpost](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sushworkpost/32/385126_2.png) [@sushworkpost](https://forum.freecodecamp.org/u/sushworkpost)\
**Post date:** [February 11, 2025, 9:23pm UTC](https://forum.freecodecamp.org/t/step-4/734500/1 "2025-02-11T21:23:42Z")

</div>

### Розкажіть нам, що сталося:

hi everybody, the console says syntax error “,” (6:57) but this “,” should be on this code… or is some code incorrectly written?

### Ваш код

```html
<!-- file: index.html -->

```

```js
/* file: script.js */
// User Editable Region

sortButton.addEventListener("click", sortInputArray(srt) => {
  console.log(str);
});

// User Editable Region

```

```css
/* file: styles.css */

```

### Інформація про ваш браузер:

Агент користувача: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36`

### Інформація про завдання:

Вивчіть базове алгоритмічне мислення, створивши сортувальник чисел - Step 4

> **[freeCodeCamp.org](https://www.freecodecamp.org/ukrainian/learn/javascript-algorithms-and-data-structures-v8/learn-basic-algorithmic-thinking-by-building-a-number-sorter/step-4)**
>
> Навчіться кодувати БЕЗКОШТОВНО

---

<div class="post-metadata">

**Author:** ![Teller](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/teller/32/412338_2.png) [@Teller](https://forum.freecodecamp.org/u/Teller)\
**Post date:** [February 11, 2025, 10:57pm UTC](https://forum.freecodecamp.org/t/step-4/734500/2 "2025-02-11T22:57:38Z")

</div>

Welcome to the forum @sushworkpost

> It should listen for the `"click"` event, and take `sortInputArray` as the callback.

You were not asked to include a handler function, or add the console log.

Happy coding

---

<div class="post-metadata">

**Author:** ![sushworkpost](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sushworkpost/32/385126_2.png) [@sushworkpost](https://forum.freecodecamp.org/u/sushworkpost)\
**Post date:** [February 12, 2025, 12:47pm UTC](https://forum.freecodecamp.org/t/step-4/734500/3 "2025-02-12T12:47:38Z")

</div>

Thanks for the specifics, if all the questions and answers were specific, I think there would be no questions and no need for a forum 😁:

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [February 12, 2025, 2:00pm UTC](https://forum.freecodecamp.org/t/step-4/734500/4 "2025-02-12T14:00:03Z")

</div>

if you have suggestions on how to update the instructions of each step we are happy to receive the suggestions

---

<div class="post-metadata">

**Author:** ![sushworkpost](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sushworkpost/32/385126_2.png) [@sushworkpost](https://forum.freecodecamp.org/u/sushworkpost)\
**Post date:** [February 13, 2025, 9:34am UTC](https://forum.freecodecamp.org/t/step-4/734500/5 "2025-02-13T09:34:55Z")

</div>

I think that’s fine, thank you. I think you know best what you need. I think that all people know what they need… sorry, I’m getting philosophical again)))

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [February 13, 2025, 9:37am UTC](https://forum.freecodecamp.org/t/step-4/734500/6 "2025-02-13T09:37:26Z")

</div>

We don’t know what’s the best wording for the instructions, we consider all feedback. The curriculum is always changing because there are always suggestions that allow to make things better than what they are

---

<div class="post-metadata">

**Author:** ![sushworkpost](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sushworkpost/32/385126_2.png) [@sushworkpost](https://forum.freecodecamp.org/u/sushworkpost)\
**Post date:** [February 13, 2025, 10:22am UTC](https://forum.freecodecamp.org/t/step-4/734500/7 "2025-02-13T10:22:22Z")

</div>

The proposal is simple: it is impossible to master programming and algorithmic thinking using contradictory expressions. If the task states that the code written is to be tested, then in logical order it is necessary to show how this code is tested, otherwise the person is misled. Thank you for your understanding, with love.)

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [February 13, 2025, 10:30am UTC](https://forum.freecodecamp.org/t/step-4/734500/8 "2025-02-13T10:30:12Z")

</div>

Can you point out where this happen?

---

<div class="post-metadata">

**Author:** ![sushworkpost](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sushworkpost/32/385126_2.png) [@sushworkpost](https://forum.freecodecamp.org/u/sushworkpost)\
**Post date:** [February 13, 2025, 10:35am UTC](https://forum.freecodecamp.org/t/step-4/734500/9 "2025-02-13T10:35:23Z")

</div>

![Без імені](https://global.discourse-cdn.com/freecodecamp/original/4X/2/2/2/222253190a4d3b423d113fa7dcae9b6029211d06.png)  
on this place

---

<div class="post-metadata">

**Author:** ![sushworkpost](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sushworkpost/32/385126_2.png) [@sushworkpost](https://forum.freecodecamp.org/u/sushworkpost)\
**Post date:** [February 13, 2025, 10:40am UTC](https://forum.freecodecamp.org/t/step-4/734500/10 "2025-02-13T10:40:04Z")

</div>

and in the next steps, I think this will be required of the user, because testing is a big paragraph in programming, there is a whole profession dedicated to this area of ​​programming and software development, and the user may not attach importance to it.

---

<div class="post-metadata">

**Author:** ![sushworkpost](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sushworkpost/32/385126_2.png) [@sushworkpost](https://forum.freecodecamp.org/u/sushworkpost)\
**Post date:** [February 13, 2025, 10:47am UTC](https://forum.freecodecamp.org/t/step-4/734500/11 "2025-02-13T10:47:55Z")

</div>

but I leave the last word to the author of the product because I don’t have the whole picture of the idea and if my subjective opinion is not true, please point it out to me, I will be grateful, I also intend to develop))

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [February 13, 2025, 12:27pm UTC](https://forum.freecodecamp.org/t/step-4/734500/12 "2025-02-13T12:27:33Z")

</div>

what issue are you having with that? it asks to add the event listener so you can press the button to test the code you are writing as you go, instead of adding the event listener at the end and not allowing the user to see the code in action

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 16, 2026, 5:18pm UTC](https://forum.freecodecamp.org/t/step-4/734500/13 "2026-01-16T17:18:33Z")

</div>

Closed on January 16, 2026, 5:18pm UTC

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