Easy As One, Two, Three Logo featuring illustrations by Art Seiden

Counting: Easy as 1, 2, 3!

Vintage Counting Rhyme by Art Seidenn Illustration

Do you remember when you were first learning to count, and your learning aids consisted of fun rhymes with vintage illustrations, like the one at left by Art Seiden? (Who, by the way, drew the animals in the header area also.)

Well, welcome to the wonderful world of Javascript, where learning to count involves a whole new learning curve -- ha ha ha!


Counting to One Hundred Using a while Statement in Javascript

The while loop is very handy. Is it as fun as learning to count with pictures and nursery rhymes? Okay, maybe not...unless your mind is wired a certain way (where programming is something you love and grasp instinctively). But it's still a very worthwhile thing to take the trouble to learn, so you can use it to perform functions in a program that need to be done over and over -- it can help reduce the lines of code you need to write to make that happen. For instance, look below...100 lines of text, all created via a while statement that is less than a dozen lines long. Pretty nifty, eh?