Step 41 JavaScript introdutório gerador pirâmide

To manipulate the result string, you will use a different type of loop. Specifically, a for...of loop, which iterates over each item in an iterable object and temporarily assigns it to a variable.

The syntax for a for...of loop looks like:

Exemplo de código

for (const value of iterable) {

}

Note that you can use const because the variable only exists for a single iteration, not during the entire loop.

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

Verifique seu código (Ctrl + Enter)

Desculpe, seu código não passou nos testes. Tente novamente.

Your for...of loop body should be empty.
Note that you can use const because the variable only exists for a single iteration, not during the entire loop.

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

RedefinirAjuda

// executando testes 6. Your

for...of

loop body should be empty. // testes concluídos
Não entendi o que fazer.
Navegado para a Etapa 41 Aprovado

Hi. Can you please post a link to the step you are doing.

For future reference if you press the help button on the challenge after 3 attempts you can pre complete the template with the step.

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.