Learn Introductory JavaScript by Building a Pyramid Generator - Step 59

Tell us what’s happening:

i have no idea what is going on…please fix this .

Your code so far

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


// User Editable Region

function padRow(rowNumber, rowCount) {
  const test = "Testing";  
  return character.repeat(rowNumber);
}
console.log("CamperChan");

// User Editable Region

const call = padRow("CamperChan");
console.log(call);


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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 59

it is better if you try to fix it.

Can you click reset first? (this will give you back the original code)
after that, please read the step instructions again.

Then, tell us, what do you believe this step is trying to teach you? (we can go from there)

function padRow(name) {
const test = “Testing”;
return character + name;
}
console.log(padRow());
console.log(capturedReturnValue);
console.log();

i m trying as the example code is showing…

you haven’t answered me, but I will try to help you anyway.

Have you read this part of the step?

To use your "Testing" value, return it out of the padRow function by updating your return statement to return only the test variable.

Is there anything in this sentence that we can help you understand better?

i dont know how should update the test variable?

First you have to find the return statement they are talking about:

Then you need to update it like they said:

return only the test variable