Learn Introductory JavaScript by Building a Pyramid Generator - Step 49

Tell us what’s happening:

i really need help with this step pls i have tried every solution on the read-search-ask forum and still nothing

Your code so far

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

function padRow() {

}

// User Editable Region

padRow();
const call;
call=result(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

The point of read-search-ask isn’t to copy other answers you find.

To see the result of calling your padRow function, declare a call variable and assign your existing padRow call to that variable.

You have 3 main issues

  1. You aren’t assigning your existing padRow call anywhere
  2. You are declaring a variable const without an initial value
  3. You are calling the function result which doesn’t exist
1 Like

i am still stuck with this

Have you changed your code? If so please post your new code.

padRow(call);

const call = “padRow”;

Now you are using a undeclared variable called call and then you are assigning a string to the variable call.

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