Tell us what’s happening:
It is telling me repeatedly to add the row to the result and assign the result no matter how I Write it. Anyone Please help!
Your code so far
const character = "#";
const count = 8;
const rows = [];
for (let i = 0; i < count; i = i + 1) {
rows.push(i);
}
let result = ""
// User Editable Region
for (const row of rows) {
result = result + " row";
console.log(result);
}
// User Editable Region
console.log(result);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0
Challenge Information:
Learn Introductory JavaScript by Building a Pyramid Generator - Step 37