Learn Introductory JavaScript by Building a Pyramid Generator - Step 58

Tell us what’s happening:

I’ve done these steps to the best of my ability, I ran the console.log test(which functioned as it said it would), and then removed the console.log as instructed, but it wont let me pass.

Your code so far

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


// User Editable Region

function padRow(name) {
  const test = "testing";
  return character + name;
}

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

console.log(result);

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 58

Hi there, welcome to the community!

Your code has an issue:

The variable test is set to "testing", but the lesson requires "Testing" with an uppercase “T”. Update it, and your code should pass.
Hope this helps! :blush:

I figured it was something stupid like that, TYSM!

1 Like