how to “You should assign call the result of your padRow call”.?
Your code so far
const character = "#";
const count = 8;
const rows = [];
function padRow() {
}
// User Editable Region
padRow(const 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 + row + "\n";
}
console.log(result);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0
Challenge Information:
Learn Introductory JavaScript by Building a Pyramid Generator - Step 49
You haven’t added the back ticks on a separate line before and after your code. You can use an option Preformatted Text </> in the reply setting. It will insert back ticks automatically, then you can add your code between the pair of Three back separately.
I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.