Learn Introductory JavaScript by Building a Pyramid Generator - Step 49

Tell us what’s happening:

I checked the forum. But I do not understand about should assign call the result of your padRow.
Here is my current code:

const character = “#”;
const count = 8;
const rows = ;

function padRow() {

}
padRow();
const call = padRow;
padRow(call);

for (let i = 0; i < count; i = i + 1) {
rows.push(character.repeat(i + 1))
}

let result = “”

for (const row of rows) {
result = result + row + “\n”;
}

console.log(result);

Your code so far

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

function padRow() {

}

// User Editable Region

padRow();
const call = padRow;
padRow(call);

// User Editable Region



for (let i = 0; i < count; i = i + 1) {
  rows.push(character.repeat(i + 1))
}

let result = ""

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

console.log(result);

Your browser information:

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 49

This is calling the function:

padRow();

All you need to do is assign this to the variable call, by modifying this line of code to include the variable declaration.
No other lines of code are necessary.

I am sorry for asking that, but why is this “building a pyramid generator” project is a lab for me, and not a workshop? Like i am seeing all the people about asking the steps, but i have just as a lab..
@igorgetmeabrain

It looks like they are going through the old archive curriculum right now, and you’re going through the new curriculum. The old stuff is the complete course that some still go through while the new course is still currently being completed

damn okay, the lab i have looks crazy ngl

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