It looks like this step accepts an incorrect answer.
The code should be as follows:
for (let i = 0; i < count; i = i + 1) { rows.push(character.repeat(i)); }
However, the following code is also accepted:
for (let i = 0; i < count; i = i + 1) { rows.push(character); character.repeat(i); }
but this does not produce the required output in the console.
Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.