JavaScript - Lesson 4 - For Loop

Published: 07 September 2011
on channel: CodeWebDesign
95
2

For loop. YEAH!

-----------
So the first time it ran, i was 0, i was less than 6 so it ran.
then i was 1 for our second time, i was 2 for our third time, i was 3 for our fourth time, i was 4 for our fifth time. It didn't stop because on our sixth time, i was 5, which is still less than 6, so it ran again until the seventh time, when i was 6.

The reason you normally start i at 0 is so that you can put in how many times you actually want it to loop in the second condition. I guess I was thinking about something else.


On this page of the site you can watch the video online JavaScript - Lesson 4 - For Loop with a duration of hours minute second in good quality, which was uploaded by the user CodeWebDesign 07 September 2011, share the link with friends and acquaintances, this video has already been watched 95 times on youtube and it was liked by 2 viewers. Enjoy your viewing!