Learn Introductory JavaScript by Building a Pyramid Generator - Step 49

Tell us what’s happening:

i cant make assign call
and i cant make existing

Your code so far

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

const call;
function padRow(call) {
 call=call;

}

// User Editable Region

padRow("call");


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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 49

this is a syntax error, you can never leave a variable declared with const without a value

put this below the function, and call the function padRow assigning a value to call

when i make this
make error for const without value

and assigning a value with which value

you need to assign the call padRow to call

you wanna make value with call string .like this “call”

Hi there.

You have modified you previous code with added call too much.
Reset the challenge step and in the editable region, declare and assign a variable name call to the existing padRow function’s call.