Learn Introductory JavaScript by Building a Pyramid Generator - Step 48

Tell us what’s happening:

IDK Im stumped as hell please help ive tried searching everywhere and i cant find something having the same problem as me

Your code so far

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


// User Editable Region

function padRow() {
const call = padRow;
let call = 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 48

Hi there and welcome to our community!

You code has gotten a little muddled, so I’d hit the Reset button to restore the starting code for this step.

You should have this line of code:

padRow();

This is your function call. All you need to do is assign this function call to a variable called call (using the const keyword). You can do this by modifying this single line of code.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.