Learn Java Script by building a Pyramid Generator - Step 37

I don’t understand what I am doing wrong.
for (const row of rows) {
result += row;
}
The Console shows me the correct output - 01234567 - If I want space between the numbers or a coma, i just add
result += row + " "; and the output is 0 1 2 3 4 5 6 7
Is that not the result we want? I still get the message that I should concatenate row to my result variable?

please post the link to the step

Learn Introductory JavaScript by Building a Pyramid Generator: Step 39 | freeCodeCamp.org

Hi @Suzanne102

You should concatenate row to your result variable.

You are using compound assignment not concatenation.
The tests are checking for specific code.

Happy coding

you probably need to use the same syntax as hello = hello + " World";, the compound assignment has not been mentioned yet

Thanks a million - your cue helped me solve my mistake