Skip to content

Day one…

October 17, 2011

There are lots of javascript tutorials but only little of them are for non-programmers.
The good example is for loop


var i=0;
for (i=0;i<=5;i++)
{
document.write("The number is " + i);
document.write("<br />");
}

Quite straight forward but what is the use of it? I know that you already know. But I don’t know. I might learn and sense the logic of it but what is the practical use?

This is what I am trying to say. Tutorials are full of example like this but very few explaining the practical use uf such. In this case for loop.

If you have a good example of usage of loop please let me know.

Advertisements

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: