Hello 

This is the day 22 of #30 days of javascrip coding, at this day I studied Loop – While Lesson i learned that
1- The While Loop is similar to the For Loop in general loop performance, but the Syntax is slightly different in its shape, but the result from both is the same.
2-In the loop while, at the beginning the variable defines in the stage called initialization
3- The while next to it is the condition, which as long as it is True , the loop remains running
4- After that, printing is done, and then the increment process is completed, which is called Final Expression. Without its presence, the loop will remain running forever because it is responsible for increasing the value of the index until it reaches a stage where the condition is False and its fulfillment stops.
5-It is possible, if i would like, to break it as soon as the loop reaches a number.
That's what I learned today and this is the codes i have typed

Comments

Popular posts from this blog