Confused about what the result of padRow call is. The hint says:
You should assign call the result of your padRow call.
But the problem is I don’t know what the result of it is. Any help will be amazing!!
Your code so far
const character = "#";
const count = 8;
const rows = [];
function padRow() {
}
// User Editable Region
padRow();
const 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 + row + "\n";
}
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/132.0.0.0 Safari/537.36
Challenge Information:
Learn Introductory JavaScript by Building a Pyramid Generator - Step 49
Hi @Teller, sorry for such a late reply, I’ve been busy this weekend. Thanks for the help but I am still a little bit confused. Which line do I need to fix? Also, how do you call a function? I am like brand new to JavaScript so I don’t really understand that much yet.