Learn Introductory JavaScript by Building a Pyramid Generator - Step 62

Tell us what’s happening:

i just can’t solve the issue step number 62 from js.introducory building a pyramid generator

Your code so far

const character = "#";
const count = 8;
const rows = [];

// User Editable Region

function padRow(rowNumber, rowCount) {
  return " " + character.repeat(rowNumber) + " ";

// User Editable Region

for (let i = 0; i < count; i = i + 1) {
  rows.push(padRow(i + 1, count));

let result = ""

for (const row of rows) {
  result = result + "\n" + row;


Your browser information:

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 62

:balloon:Hello! Welcome to the forum!

Well done on getting this far in the course. You got this.

The task at hand is the following

Update your blank space strings to be repeated rowCount - rowNumber times.

You need to use the .repeat() method on the “blank space strings” in the return line.

Remenber to put the required formula in the parenthesis.

Does this help?
Keep up the good progress!

Happy Coding! :slightly_smiling_face:

Please talk to us about how the instructions or error message is confusing. Thanks

behind the space you have to make the repead and inside the row count and row number

Thank you for wellcome and for help.
I think i didn’t understand the task and i can not make it.

Best regards

Hello @sedoed58,

You are under no obligation to continue with freeCodeCamp, it is totally free.

Please consider that you have already completed more than 50% of the first module. And you can ask as many questions as you like in the forum until you understand whatever issue trouble you. There are lots of people waiting here to answer your questions, simply because they were once in your shoes.

Take the decision that is right for you, but please know that everyone at freeCodeCamp is here for you.