JavaScript 入門: ピラミッド表示プログラムを作成する - Step 41

状況を説明しましょう:

Hi there, Thank you so much help me a lot. I stuck in this exercise. How can I solve Step 41. If you can advise me let me know. Thank you.

現状のコード

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

for (let i = 0; i < count; i = i + 1) {
  rows.push(i);
}
for (const v of rows) {

}

let result = ""


// User Editable Region



// User Editable Region


console.log(result);

ブラウザ情報:

ユーザーエージェント: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

チャレンジの情報:

JavaScript 入門: ピラミッド表示プログラムを作成する - Step 41

Hi @Shocean

Create a for...of loop to iterate through your rows array, assigning each value to a row variable.

For this step please use the name row for the variable.

Happy coding

1 Like

Thank you so much. I’m done this step.