Learn Introductory JavaScript by Building a Pyramid Generator - Step 45

What’s happening:

I’m being asked to call the padRow function but I’m not really understanding how to do that.

Code so far:

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


// User Editable Region

function padRow() {
  call (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 + "\n" + row;
}

console.log(result);

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 45

This is the example:

function test() {

}
test();

This is your starting code:

function padRow() {

}

So how would you call the padRow function?


Edit: just be super clear.

This is the test function definition.

function test() {

}

This is how you call the test function.

test();