# Learn Introductory JavaScript by Building a Pyramid Generator - Step 21

**URL:** <https://forum.freecodecamp.org/t/learn-introductory-javascript-by-building-a-pyramid-generator-step-21/702492>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [July 24, 2024, 11:10am UTC](https://forum.freecodecamp.org/t/learn-introductory-javascript-by-building-a-pyramid-generator-step-21/702492 "2024-07-24T11:10:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdhajala](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/abdhajala/32/368199_2.png) [@abdhajala](https://forum.freecodecamp.org/u/abdhajala)\
**Post date:** [July 24, 2024, 11:10am UTC](https://forum.freecodecamp.org/t/learn-introductory-javascript-by-building-a-pyramid-generator-step-21/702492/1 "2024-07-24T11:10:53Z")

</div>

### Tell us what’s happening:

I’m trying to understand what i got wrong but the feedback is confusing

### Your code so far

```javascript
let character = 'Hello';
let count = 8;
let rows = ["Naomi", "Quincy", "CamperChan"];
console.log(rows[0]);

// User Editable Region

rows[2] = 10;
console.log(rows[2]);

// User Editable Region

```

### Your browser information:

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36`

### Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 21

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-introductory-javascript-by-building-a-pyramid-generator/step-21)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![hbar1st](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/hbar1st/32/372649_2.png) [@hbar1st](https://forum.freecodecamp.org/u/hbar1st)\
**Post date:** [July 24, 2024, 11:16am UTC](https://forum.freecodecamp.org/t/learn-introductory-javascript-by-building-a-pyramid-generator-step-21/702492/2 "2024-07-24T11:16:02Z")

</div>

> [@abdhajala](#):
>
> `console.log(rows[2]);`

This will not print the rows array. It will only print the 3rd value in the array.

---

<div class="post-metadata">

**Author:** ![hasanzaib1389](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/hasanzaib1389/32/377602_2.png) [@hasanzaib1389](https://forum.freecodecamp.org/u/hasanzaib1389)\
**Post date:** [July 24, 2024, 11:16am UTC](https://forum.freecodecamp.org/t/learn-introductory-javascript-by-building-a-pyramid-generator-step-21/702492/3 "2024-07-24T11:16:46Z")

</div>

> [@abdhajala](#):
>
> `console.log(rows[2]);`

Hi there!  
The instructions is asking you to log the `rows` array to the console.  
Currently you have logged the third element of `rows` array.  
You have the example within the instructions:

```auto
console.log(array); 

```

You can log the array by referencing it’s name to the console.log().

---

<div class="post-metadata">

**Author:** ![abdhajala](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/abdhajala/32/368199_2.png) [@abdhajala](https://forum.freecodecamp.org/u/abdhajala)\
**Post date:** [July 24, 2024, 11:44am UTC](https://forum.freecodecamp.org/t/learn-introductory-javascript-by-building-a-pyramid-generator-step-21/702492/4 "2024-07-24T11:44:16Z")

</div>

Thank You. One needs to be very observant when doing this.

---

<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 8, 2025, 3:42pm UTC](https://forum.freecodecamp.org/t/learn-introductory-javascript-by-building-a-pyramid-generator-step-21/702492/5 "2025-01-08T15:42:24Z")

</div>

Closed on January 8, 2025, 3:42pm UTC


