Friday, March 2, 2012

the do .....while loop task on java script chapter 8

this is the one of the variant of while loop , the principal of the loop is by do the command first and then lookfor the conditional onthe bottom of its inside of (.....) sign after "while"
or let me show you the example :
as simple the composition is like this
do
{

code tobe executed
}
while(var<=endvalue ) ''the conditional statement you decide as the parameter

if you stiil confuse lets see the real example

do
{
i++;
document.write( "the value are increasing from " + i);


}
while(i<=10)
can you tell me the result?

No comments:

Post a Comment

Task of Study Information Technology Headline Animator

Subscribe this blog