Learn Introductory JavaScript by Building a Pyramid Generator - Step 49

Tell us what’s happening:

You should assign call the result of your padRow call what should I do

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

console.log(result);

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Mobile Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 49

this is a line of code that calls padRow

they want you to assign it (by adding a variable and an equal sign to the left side) to a new variable called call.

as an example of this, let’s say I had a function called myFunction and I wanted to assign the return value to a variable called myVariable, then I would write the following:
let myVariable = myFunction();

This creates a new variable called myVariable and assigns whatever is returned by the call to myFunction to it.