Learn Introductory JavaScript by Building a Pyramid Generator - Step 52

Tell us what’s happening:

hard very hard
find process described
help hellp thaml

Your code so far

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


// User Editable Region

const title = "Professor";
function padRow(character) {
  return title + character;
}
padRow("Naomi")

// 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 (X11; Ubuntu; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 52

hi and welcome to the forum.

This step wants you to concatenate the character variable to the --beginning-- of the name variable.

You have not returned that. Instead you have returned the result of concatenating the variable title to the beginning of the character variable.

Please click reset and try to modify the function padRow without adding a new variable but just by changing the return statement to be what they wanted.