Learn Introductory JavaScript by Building a Pyramid Generator - Step 49

Tell us what’s happening:

can somebody explain what to do in thiss this is tough actually

Your code so far

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

function padRow() {
const call =padRow;
}

// User Editable Region

padRow();

// 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/131.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 49

1 Like

Please talk about how the instructions have you stuck

Hint: Only change the code in the User Editable Region and make sure the variable call is assigned to the function call not just the name of the function.

1 Like

. You should declare a

call

variable. 2. You should use

const

to declare your

call

variable. 3. You should assign

call

the result of your

padRow

call.

why don’t you use your own words? giving the errors is useful but you should also tell us how you are stuck in fixing them

1 Like