Learn Introductory JavaScript by Building a Pyramid Generator - Step 50

Tell us what’s happening:

Step 50 is wrong. I have logged call, just like the instructions say, and it saying that it is wrong.

Your code so far

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


// User Editable Region

function padRow() {

}
const call = padRow();
console.log(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 + "\n" + row;
}

console.log(result);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) 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 50

what did the hint say?

1 Like

The console should say it is undefined, which is okay. But the code should check as okay!

When I put your code in though I got a very specific hint. (Not in the console). Are you able to see it?

1 Like