Learn Introductory JavaScript by Building a Pyramid Generator - Step 49

Tell us what’s happening:

I believe I’ve declared the call variable of padRow, I don’t know what is left to do. Searching is not turning up anything I understand to try.

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 + "\n" + row;
}

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/127.0.0.0 Safari/537.36 Edg/127.0.0.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 49

You don’t add a variable with a string “padRow” inside your function. Remove that.

Your function call is outside the function, padRow(). That is the value that you assign to your new variable. You add to the line in the editable region above.