# Вивчіть основи JavaScript, створивши генератор пірамід - Step 21

**URL:** <https://forum.freecodecamp.org/t/javascript-step-21/716034>\
**Category:** General\
**Tags:** українська\
**Created:** [October 13, 2024, 4:33am UTC](https://forum.freecodecamp.org/t/javascript-step-21/716034 "2024-10-13T04:33:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JlaYmix](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jlaymix/32/374910_2.png) [@JlaYmix](https://forum.freecodecamp.org/u/JlaYmix)\
**Post date:** [October 13, 2024, 4:33am UTC](https://forum.freecodecamp.org/t/javascript-step-21/716034/1 "2024-10-13T04:33:08Z")

</div>

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

Can’t understand “You should use bracket notation on the rows array again”

### Ваш код

```javascript

// User Editable Region

let rows = [1, 2, 3];
rows[2] = 10;
console.log(rows);
console.log(rows);

// User Editable Region

```

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

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

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

Вивчіть основи JavaScript, створивши генератор пірамід - Step 21

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

---

<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:** [October 13, 2024, 4:36am UTC](https://forum.freecodecamp.org/t/javascript-step-21/716034/2 "2024-10-13T04:36:14Z")

</div>

Welcome to the forum @JlaYmix

It looks like you added code from the example.

> [@JlaYmix](#):
>
> ```auto
> let rows = [1, 2, 3];
> rows[2] = 10;
> console.log(rows);
> console.log(rows);
> 
> ```

Please remove the `rows` variable and declaration from the above code block.

Also remove one of the console logs.

Happy coding

---

<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:15pm UTC](https://forum.freecodecamp.org/t/javascript-step-21/716034/3 "2026-01-16T17:15:35Z")

</div>

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