I’ve concatenated the row variable to the result, and I added a space (+\n+) but it’s not passing
const character = “#”;
const count = 8;
const rows = ;
for (let i = 0; i < count; i = i + 1) {
rows.push(i);
}
let result = " ";
for (const row of rows)
{
result=result + “\n” + row;
}
console.log(result);