Learn Introductory JavaScript by Building a Pyramid Generator - Step 71

In this step, we are asked to update the addition assignment operator.

for (let i = 0; i < count; i= i + 1) {}
to
for (let i = 0; i < count; i += 1) {}

Now in a previous Step the for loop was explained as:
for (iterator; condition; iteration) {logic}

Now I modified the “iteration” part and passed…
My question is :
Is this “(iterator; condition; iteration)” called the iterator statement as a whole? Even though there are three statements in it?

1 Like

Hello, a for loop has three expressions as follows: Initialization, Condition and Increment/decrement. I believe this is the equivalent to one condition.